forked from anoodleReza/Greenery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
295 lines (288 loc) · 9.81 KB
/
App.tsx
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
//navigation
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
//basic react
import * as React from 'react';
import 'react-native-gesture-handler';
//merchant
import MerchantSignup from './screens/merchant/MerchantSignup';
import MerchantDetails from './screens/merchant/MerchantDetails';
import MerchantSignin from './screens/merchant/MerchantSignin';
import MerchantHomepage from './screens/merchant/MerchantHomepage';
import MerchantMenu from './screens/merchant/MerchantMenu';
import MerchantEditProfile from './screens/merchant/MerchantEditProfile';
import MerchantTodayPromo from './screens/merchant/MerchantTodayPromo';
import MerchantNavigation from './screens/NavigationBar';
import MerchantProfile from './screens/merchant/MerchantProfile';
import MerchantAddMenu from './screens/merchant/MerchantAddMenu';
import MerchantAppetizer from './screens/merchant/MerchantAppetizer';
import MerchantUserView from './screens/merchant/MerchantUserView';
import MerchantMainCourse from './screens/merchant/MerchantMainCourse';
import MerchantDessert from './screens/merchant/MerchantDessert';
import MerchantOrdersReceived from './screens/merchant/MerchantOrdersReceived';
import MerchantOrdersFinished from './screens/merchant/MerchantOrdersFinished';
import MerchantOrdersOnDelivery from './screens/merchant/MerchantOrdersOnDelivery';
import MerchantOrdersProcessing from './screens/merchant/MerchantOrdersProcessing';
import MerchantOrdersDetail from './screens/merchant/MerchantOrdersDetail';
import MerchantOrderDetailsFinished from './screens/merchant/MerchantOrderDetailsFinished';
//main homepage
import Homepage from './screens/Homepage';
//partner
import PartnerSignin from './screens/partner/PartnerSignin';
import PartnerSignup from './screens/partner/PartnerSignup';
import PartnerHomepage from './screens/partner/PartnerHomepage';
import PartnerProfile from './screens/partner/PartnerProfile';
import PartnerEditProfile from './screens/partner/PartnerEditProfile';
import PartnerSignupDetails from './screens/partner/PartnerSignupDetails';
import PartnerMap from './screens/partner/PartnerMap';
//paper meterial ui
import {DefaultTheme, Provider as PaperProvider} from 'react-native-paper';
//user
import UserSignin from './screens/user/UserSignin';
import UserSignup from './screens/user/UserSignup';
import UserHomepage from './screens/user/UserHomepage';
import BestSeller from './screens/user/BestSeller';
import RestaurantPage from './screens/user/RestaurantPage';
import UserProfile from './screens/user/UserProfile';
import UserEditProfile from './screens/user/UserEditProfile';
import UserDetails from './screens/user/UserDetails';
import Search from './screens/user/Search';
import Cart from './screens/user/Cart';
import UserWallet from './screens/user/UserWallet';
import UserWalletTopup from './screens/user/UserWalletTopup';
import UserMap from './screens/user/UserMap';
import UserFinishedOrder from './screens/user/UserFinishedOrder';
const Stack = createStackNavigator();
function App() {
return (
<PaperProvider theme={theme}>
<NavigationContainer>
<Stack.Navigator>
{/* Homepage of entire app */}
<Stack.Screen
name="Homepage"
component={Homepage}
options={{headerShown: false}}
/>
{/* merchant stuff */}
<Stack.Screen
name="MerchantSignin"
component={MerchantSignin}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantSignup"
component={MerchantSignup}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantDetails"
component={MerchantDetails}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantHomepage"
component={MerchantHomepage}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantMenu"
component={MerchantMenu}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantProfile"
component={MerchantProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantEditProfile"
component={MerchantEditProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantTodayPromo"
component={MerchantTodayPromo}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantNavigation"
component={MerchantNavigation}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantAddMenu"
component={MerchantAddMenu}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantAppetizer"
component={MerchantAppetizer}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantUserView"
component={MerchantUserView}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantMainCourse"
component={MerchantMainCourse}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantDessert"
component={MerchantDessert}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrdersReceived"
component={MerchantOrdersReceived}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrdersFinished"
component={MerchantOrdersFinished}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrdersOnDelivery"
component={MerchantOrdersOnDelivery}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrdersProcessing"
component={MerchantOrdersProcessing}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrdersDetail"
component={MerchantOrdersDetail}
options={{headerShown: false}}
/>
<Stack.Screen
name="MerchantOrderDetailsFinished"
component={MerchantOrderDetailsFinished}
options={{headerShown: false}}
/>
{/* Partner */}
<Stack.Screen
name="PartnerSignin"
component={PartnerSignin}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerSignup"
component={PartnerSignup}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerHomepage"
component={PartnerHomepage}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerProfile"
component={PartnerProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerEditProfile"
component={PartnerEditProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerSignupDetails"
component={PartnerSignupDetails}
options={{headerShown: false}}
/>
<Stack.Screen
name="PartnerMap"
component={PartnerMap}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserSignin"
component={UserSignin}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserSignup"
component={UserSignup}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserHomepage"
component={UserHomepage}
options={{headerShown: false}}
/>
<Stack.Screen
name="BestSeller"
component={BestSeller}
options={{headerShown: false}}
/>
<Stack.Screen
name="RestaurantPage"
component={RestaurantPage}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserProfile"
component={UserProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserEditProfile"
component={UserEditProfile}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserDetails"
component={UserDetails}
options={{headerShown: false}}
/>
<Stack.Screen
name="Search"
component={Search}
options={{headerShown: false}}
/>
<Stack.Screen
name="Cart"
component={Cart}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserWallet"
component={UserWallet}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserWalletTopup"
component={UserWalletTopup}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserMap"
component={UserMap}
options={{headerShown: false}}
/>
<Stack.Screen
name="UserFinishedOrder"
component={UserFinishedOrder}
options={{headerShown: false}}
/>
</Stack.Navigator>
</NavigationContainer>
</PaperProvider>
);
}
const theme = {
...DefaultTheme,
roundness: 40,
colors: {
...DefaultTheme.colors,
primary: '#A9FDAC',
accent: '#f1c40f',
},
};
export default App;