-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
163 lines (161 loc) · 5.5 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
import React, {Component} from 'react';
import {View, SafeAreaView, ScrollView} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Landing from './components/landing/Landing';
import Login from './components/login/Login';
import Signup from './components/login/Signup';
import Password from './components/login/Password';
import Forget from './components/login/Forget';
import Location from './components/Location';
import Branches from './components/branches/Branches';
import Categories from './components/menu/Categories';
import AddToCart from './components/cart/AddToCart';
import Rewards from './components/rewards/Rewards';
import DineIn from './components/dineIn/DineIn';
import Reservation from './components/reservation/Reservation';
import More from './components/more/More';
import Orders from './components/orders/Orders';
import OrderDetails from './components/orders/OrderDetails';
import ViewProfile from './components/profile/ViewProfile';
import EditProfile from './components/profile/EditProfile';
import Payment from './components/cart/Payment';
import GoogleMap from './components/GoogleMap';
import SearchLocationAutocomplete from './components/SearchLocationAutocomplete';
import Working from './components/rewards/Working';
import HistoryCredit from './components/rewards/HistoryCredit';
import TransferCredit from './components/rewards/TransferCredit';
import Customization from './components/cart/Customization';
const Stack = createNativeStackNavigator();
export class App extends Component {
render() {
return (
<SafeAreaView style={{backgroundColor: 'white', flex: 1}}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Landing">
<Stack.Screen
name="Landing"
component={Landing}
options={{headerShown: false}}
// options={{
// headerTitle: props => <Header login={false} {...props} />,
// }}
customer={({params}) => params.customer}
/>
<Stack.Screen
name="Login"
component={Login}
options={{headerShown: false}}
/>
<Stack.Screen
name="Signup"
component={Signup}
options={{headerShown: false}}
/>
<Stack.Screen
name="Password"
component={Password}
options={{headerShown: false}}
/>
<Stack.Screen
name="Forget"
component={Forget}
options={{headerShown: false}}
/>
<Stack.Screen
name="Branches"
component={Branches}
options={{headerShown: false}}
/>
<Stack.Screen
name="Categories"
component={Categories}
options={{headerShown: false}}
/>
<Stack.Screen
name="AddToCart"
component={AddToCart}
options={{headerShown: false}}
/>
<Stack.Screen
name="Rewards"
component={Rewards}
options={{headerShown: false}}
/>
<Stack.Screen
name="DineIn"
component={DineIn}
options={{headerShown: false}}
/>
<Stack.Screen
name="Reservation"
component={Reservation}
options={{headerShown: false}}
/>
<Stack.Screen
name="More"
component={More}
options={{headerShown: false}}
/>
<Stack.Screen
name="Orders"
component={Orders}
options={{headerShown: false}}
/>
<Stack.Screen
name="OrderDetails"
component={OrderDetails}
options={{headerShown: false}}
/>
<Stack.Screen
name="ViewProfile"
component={ViewProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="EditProfile"
component={EditProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="Payment"
component={Payment}
options={{headerShown: false}}
/>
<Stack.Screen
name="GoogleMap"
component={GoogleMap}
options={{headerShown: false}}
/>
<Stack.Screen
name="Search Location"
component={SearchLocationAutocomplete}
options={{headerShown: false}}
/>
<Stack.Screen
name="How it works"
component={Working}
options={{headerShown: false}}
/>
<Stack.Screen
name="Transfer"
component={TransferCredit}
options={{headerShown: false}}
/>
<Stack.Screen
name="History"
component={HistoryCredit}
options={{headerShown: false}}
/>
<Stack.Screen
name="Customization"
component={Customization}
options={{headerShown: false}}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
);
}
}
export default App;