-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
168 lines (159 loc) · 4.87 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
164
165
166
167
168
import 'react-native-gesture-handler';
import { Button, Pressable, StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Feather, FontAwesome, MaterialIcons } from '@expo/vector-icons';
import { useFonts } from 'expo-font';
//import screens
import Budget from './screens/Budget';
import Final from './screens/Final';
import Avoiding from './screens/Avoiding';
import HowHungry from './screens/HowHungry';
import MealOptions from './screens/MealOptions';
import OrderDetails from './screens/OrderDetails';
import Orders from './screens/Orders';
import Search from './screens/Search';
import Profile from './screens/Profile';
import Curating from './screens/Curating';
import HowLong from './screens/HowLong';
const Tab = createBottomTabNavigator();
// function Home() {
// return (
// );
// }
function Otherscreens() {
return (
<Stack.Navigator>
<Stack.Screen
name='Home'
component={Budget}
options={{ headerShown: false }}
/>
<Stack.Screen
name='MealOptions'
component={MealOptions}
options={{
title: 'Savour it',
headerTitleStyle: {
color: 'white',
position: 'absolute',
width: 91,
height: 78,
left: 140,
top: 10,
fontFamily: 'Lactosa',
fontStyle: 'normal',
color: '#FFFFFF',
border: '2.36364px solid #DA0091',
textShadow: '0px 2.36364px 0px rgba(218, 0, 145, 0.25)',
fontWeight: '400',
},
headerStyle: { backgroundColor: '#DA0091' },
}}
/>
<Stack.Screen name='HowLong' component={HowLong} />
<Stack.Screen
name='HowHungry'
component={HowHungry}
options={{
headerShown: false,
title: 'Savour it',
headerTitleStyle: {
color: 'white',
position: 'absolute',
width: 91,
height: 78,
left: 140,
top: 10,
fontFamily: 'Lactosa',
fontStyle: 'normal',
color: '#FFFFFF',
border: '2.36364px solid #DA0091',
textShadow: '0px 2.36364px 0px rgba(218, 0, 145, 0.25)',
fontWeight: '400',
},
headerStyle: { backgroundColor: '#DA0091' },
}}
/>
<Stack.Screen name='OrderDetails' component={OrderDetails} />
<Stack.Screen name='Final' component={Final} />
<Stack.Screen name='Avoiding' component={Avoiding} />
<Stack.Screen name='Curating' component={Curating} />
</Stack.Navigator>
);
}
const Stack = createNativeStackNavigator();
export default function App() {
const [loaded] = useFonts({
Lactosa: require('./assets/fonts/Lactosa.ttf'),
Clash: require('./assets/fonts/ClashDisplay.otf'),
});
if (!loaded) {
return null;
}
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen
name='Budget'
component={Otherscreens}
options={{
title: 'Savour it',
headerTitleStyle: {
color: 'white',
position: 'absolute',
width: 91,
height: 78,
left: 140,
top: 10,
fontFamily: 'Lactosa',
fontStyle: 'normal',
fontWeight: 400,
color: '#FFFFFF',
border: '2.36364px solid #DA0091',
textShadow: '0px 2.36364px 0px rgba(218, 0, 145, 0.25)',
fontWeight: '400',
},
headerStyle: { backgroundColor: '#DA0091' },
tabBarLabel: 'Budget',
tabBarIcon: ({ color, size }) => (
<FontAwesome name='cutlery' size={24} color='black' />
),
}}
/>
<Tab.Screen
name='Search'
component={Search}
options={{
tabBarLabel: 'Search',
tabBarIcon: ({ color, size }) => (
<FontAwesome name='search' size={24} color='black' />
),
}}
/>
<Tab.Screen
name='Orders'
component={Orders}
options={{
tabBarLabel: 'Orders',
tabBarIcon: ({ color, size }) => (
<MaterialIcons name='bookmark-border' size={24} color='black' />
),
}}
/>
<Tab.Screen
name='Profile'
component={Profile}
options={{
tabBarLabel: 'Profile',
tabBarIcon: ({ color, size }) => (
<Feather name='user' size={24} color='black' />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({});