-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (24 loc) · 919 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {createStore,combineReducers} from 'redux';
import {Provider} from 'react-redux';
import { useFonts} from "expo-font";
import productsReducer from './store/reducers/products';
import cartReducer from './store/reducers/cart';
import ordersReducer from './store/reducers/orders';
import TabNavigator from './navigation/ShopNavigator';
const rootReducer = combineReducers({products : productsReducer,cart:cartReducer, orders:ordersReducer});
const store = createStore(rootReducer);
export default function App() {
// const [fontsLoaded] = useFonts({
// 'Inter-SemiBoldItalic': 'https://rsms.me/inter/font-files/Inter-SemiBoldItalic.otf?v=3.12',
// });
// if (!fontsLoaded) {
// return null;
// }
return (
<Provider store={store}>
{/* <Text>Open up App.js to start working on your app!</Text> */}
{/* <ShopNavigator/> */}
<TabNavigator/>
</Provider>
);
}