-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstacknav.js
More file actions
76 lines (73 loc) · 1.88 KB
/
Copy pathstacknav.js
File metadata and controls
76 lines (73 loc) · 1.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React, { Component } from 'react';
import {
Image,
TouchableOpacity
} from 'react-native';
import { createStackNavigator,NavigationActions } from 'react-navigation';
import HomeScreen from "./HomeScreen";
import ShopDetailsScreen from "./ShopDetailsScreen";
import MallDetailsScreen from "./MallDetailsScreen";
import FloorPlanScreen from "./FloorPlanScreen";
import CategoryScreen from "./CategoryScreen";
import SearchScreen from "./SearchScreen";
import ShopListScreen from './ShopListScreen';
import ProfileScreen from './ProfileScreen';
import EditUserScreen from './EditUserScreen';
import FeedbackScreen from "./FeedbackScreen";
const stackNav = createStackNavigator({
Home : {
screen: HomeScreen,
navigationOptions: ({navigation}) => ({
headerLeft:(<TouchableOpacity onPress={() => navigation.openDrawer()}>
<Image
style={{width: 30,height: 30}}
source={require('./img/menu_icon.png')}
/>
</TouchableOpacity>
)
})
},
MallDetails: {
screen: MallDetailsScreen,
navigationOptions: ({navigation}) => ({
title: "Mall Details",
})
},
FloorPlan: {
screen: FloorPlanScreen,
navigationOptions: ({navigation}) => ({
title: "Floor Plan",
})
},
ShopList: {
screen: ShopListScreen,
navigationOptions: ({navigation}) => ({
title: "Shop List",
})
},
Feedback: {
screen: FeedbackScreen,
navigationOptions: ({navigation}) => ({
title: "Feedback",
})
},
Search: {
screen: SearchScreen,
},
CategoryShopList: {
screen: CategoryScreen,
},
ShopDetail: {
screen: ShopDetailsScreen,
},
User: {
screen: ProfileScreen,
},
EditUser: {
screen: EditUserScreen,
navigationOptions: ({navigation}) => ({
title: "Edit User",
})
},
});
export default stackNav;