-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
75 lines (66 loc) · 2.16 KB
/
Copy pathApp.js
File metadata and controls
75 lines (66 loc) · 2.16 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
import "react-native-gesture-handler";
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import { useFonts } from "expo-font";
import {
OnBoarding,
SignIn,
SignUp,
ForgotPassword,
Otp,
FoodDetail,
CartTab,
MyCard,
AddCard,
Checkout,
Success,
DeliveryStatus,
Map,
} from "./screens";
import CustomDrawer from "./navigation/CustomDrawer";
import { TabProvider } from "./context/TabContext";
const Stack = createStackNavigator();
const App = () => {
const [loaded] = useFonts({
"Poppins-Regular": require("./assets/fonts/Poppins-Regular.ttf"),
"Poppins-Bold": require("./assets/fonts/Poppins-Bold.ttf"),
"Poppins-SemiBold": require("./assets/fonts/Poppins-SemiBold.ttf"),
"Poppins-Black": require("./assets/fonts/Poppins-Black.ttf"),
});
if (!loaded) {
return null;
}
return (
<TabProvider>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
initialRouteName={"OnBoarding"}
>
<Stack.Screen name="OnBoarding" component={OnBoarding} />
<Stack.Screen name="SignIn" component={SignIn} />
<Stack.Screen name="SignUp" component={SignUp} />
<Stack.Screen name="ForgotPassword" component={ForgotPassword} />
<Stack.Screen name="Otp" component={Otp} />
<Stack.Screen name="CustomDrawer" component={CustomDrawer} />
<Stack.Screen name="FoodDetail" component={FoodDetail} />
<Stack.Screen name="CartTab" component={CartTab} />
<Stack.Screen name="MyCard" component={MyCard} />
<Stack.Screen name="AddCard" component={AddCard} />
<Stack.Screen name="Checkout" component={Checkout} />
<Stack.Screen name="DeliveryStatus" component={DeliveryStatus} />
<Stack.Screen name="Map" component={Map} />
<Stack.Screen
name="Success"
component={Success}
// gestureEnabled={false}
/>
</Stack.Navigator>
</NavigationContainer>
</TabProvider>
);
};
export default App;