-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
110 lines (104 loc) · 3.01 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
// In App.js in a new project
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useState, useEffect } from "react";
import HomeScreen from './screens/Home';
import SetDietRestrictionScreen from './screens/SetDietRestriction';
import SetUpPlanScreen from './screens/SetUpPlan';
import PlanContentScreen from './screens/PlanContent';
import MyPlanScreen from './screens/MyPlan';
import DishDetailsScreen from './screens/DishDetails';
import NavigateMapScreen from './screens/Map'
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ headerShown: false }}
// options={{ title: 'Overview' }}
/>
<Stack.Screen
name="Set Dietary Restrictions"
component={SetDietRestrictionScreen}
options={{
title: 'Dietary Quiz',
headerStyle: {
backgroundColor: '#32B768'
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: "22px"
},
}}
/>
<Stack.Screen
name="Set Up Meal Plan"
component={SetUpPlanScreen}
options={{
title: 'New Plan',
headerStyle: {
backgroundColor: '#32B768'
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: "22px"
},
}}
/>
<Stack.Screen name="Plan Content" component={PlanContentScreen} />
<Stack.Screen
name="My Plan"
component={MyPlanScreen}
options={{
title: 'My Plan',
headerStyle: {
backgroundColor: '#32B768'
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: "22px"
},
}}
/>
<Stack.Screen
name="Dish Details"
component={DishDetailsScreen}
options={{
title: 'Dish Details',
headerStyle: {
backgroundColor: '#32B768'
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: "22px"
},
}}
/>
<Stack.Screen
name="Map"
component={NavigateMapScreen}
options={{
title: 'Map',
headerStyle: {
backgroundColor: '#32B768'
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: "22px"
},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;