-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
69 lines (59 loc) · 2 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
//import { StatusBar } from 'expo-status-bar';
//import { StyleSheet, Text, View } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Image, Button } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import MealOverviewScreen from './screens/MealOverviewScreen';
import MealDetailScreen from './screens/MealDetaiScreen';
import CategoriesScreen from './screens/CategoriesScreen';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<View style={styles.container}>
<Text>Willkommen bei Studentenfutter</Text>
<Image
source={{uri: 'C:\Users\yasmi\OneDrive\Desktop\Studentenfutter ebe\AwesomeProject\assets\studentenfutter.png',
}}
style={{ width: 200, height: 200 }}
/>
<NavigationContainer>
<Stack.Navigator
initialRouteName='Meals Categories'
//Default screen settigs (apply to every screen)
screenOptions={{
headerStyle: { backgroundColor: '#351401' },
headerTintColor: 'white',
//Set the background color for the current screen
contentStyle: { backgroundColor: '#3f2f25' }
}}
>
<Stack.Screen
name="Meals Categories"
component={CategoriesScreen}
options={{
title: 'Meals Categries',
}}
/>
<Stack.Screen
name="Meal Overview"
component={MealOverviewScreen}
/>
<Stack.Screen
name='Meal Detail'
component={MealDetailScreen}
/>
</Stack.Navigator>
</NavigationContainer>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});