-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathApp.js
More file actions
44 lines (43 loc) · 1.23 KB
/
App.js
File metadata and controls
44 lines (43 loc) · 1.23 KB
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
37
38
39
40
41
42
43
44
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
//import 'react-native-gesture-handler';
import React from 'react';
import {View,Text,TouchableOpacity} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createDrawerNavigator} from '@react-navigation/drawer';
import HomeScreen from './src/screens/Home';
import CartScreen from './src/screens/Cart';
import ProductScreen from './src/screens/Product';
import {AppContextProvider} from './src/store/context';
import Icon from 'react-native-vector-icons/FontAwesome';
const Drawer = createDrawerNavigator();
function NewHomeScreen(){
return(
<View>
<Text>Home Screen</Text>
</View>
);
}
const App = () => {
return (
<AppContextProvider>
<NavigationContainer >
<Drawer.Navigator initialRouteName='Home'>
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="Cart" component={CartScreen} />
<Drawer.Screen name="Product" component={ProductScreen} options={{
drawerItemStyle:{
display:"none"
}
}} />
</Drawer.Navigator>
</NavigationContainer>
</AppContextProvider>
);
};
export default App;