-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
77 lines (76 loc) · 2.83 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
import "react-native-gesture-handler";
import Onboarding from "./src/Screens/Onboarding/Onboarding";
import Authentication from "./src/Screens/Authentication/Authentication";
import ShareLocation from "./src/Screens/ShareLocation/ShareLocation";
import Home from "./src/Screens/Home/Home";
import Order from "./src/Screens/Order/Order";
import CheckOut from "./src/Screens/CheckOut/CheckOut";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { NavigationContainer } from "@react-navigation/native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { Provider } from "react-redux";
import { persistor, store } from "./Store";
import { PersistGate } from "redux-persist/integration/react";
import OrderSuccess from "./src/Screens/OrderSuccess/OrderSuccess";
import OrderDetails from "./src/Screens/OrderDetails/OrderDetails";
import CreditCardDetails from "./src/Screens/CreditCard/CreditCardDetails";
export default function App() {
const Stack = createNativeStackNavigator();
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
component={Onboarding}
name="onboarding"
options={{ headerShown: false }}
/>
<Stack.Screen
component={Authentication}
name="authentication"
options={{ headerShown: false }}
/>
<Stack.Screen
component={ShareLocation}
name="location"
options={{ headerShown: false }}
/>
<Stack.Screen
component={Home}
name="home"
options={{ headerShown: false }}
/>
<Stack.Screen
component={Order}
name="order"
options={{ headerShown: false }}
/>
<Stack.Screen
component={CheckOut}
name="checkout"
options={{ headerShown: false }}
/>
<Stack.Screen
component={OrderSuccess}
name="ordersuccess"
options={{ headerShown: false }}
/>
<Stack.Screen
component={OrderDetails}
name="orderdetails"
options={{ headerShown: false }}
/>
<Stack.Screen
component={CreditCardDetails}
name="creditcard"
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>
</PersistGate>
</Provider>
);
}