-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (30 loc) · 888 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
33
34
35
36
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import 'react-native-gesture-handler'
import React from 'react';
import { NavigationContainer } from '@react-navigation/native'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import { Provider } from 'react-redux'
import store from './store/store'
import Products from './components/Products'
import Cart from './components/Cart'
const Tab = createBottomTabNavigator()
// TODO: add icons for tab navigation
const App: () => React$Node = () => {
return (
<Provider store={store}>
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Products" component={Products} />
<Tab.Screen name="Cart" component={Cart} />
</Tab.Navigator>
</NavigationContainer>
</Provider>
);
};
export default App;