-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.js
64 lines (61 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import React from 'react';
import { createDrawerNavigator, createStackNavigator } from 'react-navigation';
import Home from './src/Home/screens/Home';
import Profile from './src/Profile/screens/Profile';
import Products from './src/Products/screens/Products';
import ProductDetails from './src/ProductDetails/screens/ProductDetails';
import Wishlist from './src/Wishlist/screens/Wishlist';
import Cart from './src/Cart/screens/Cart';
import SideNav from './src/Home/components/SideNav';
import HeaderSection from './src/Home/components/HeaderSection';
const Drawer = createDrawerNavigator({
Home: {
screen: Home
}
}, {
drawerWidth: 280,
contentComponent: SideNav,
drawerOpenRoute: 'DrawerOpen',
drawerCloseRoute: 'DrawerClose',
});
const App = createStackNavigator({
Main: {
screen: Drawer,
navigationOptions: {
header: null
}
},
ProductDetails: {
screen: ProductDetails,
navigationOptions: {
header: null
}
},
Cart: {
screen: Cart,
navigationOptions: {
header: null
}
},
Wishlist: {
screen: Wishlist,
navigationOptions: {
header: null
}
},
Products: {
screen: Products,
navigationOptions: {
header: null
}
},
Profile: {
screen: Profile,
navigationOptions: {
header: null
}
}
}, {
initialRouteName: 'Main'
})
export default App