-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.js
88 lines (82 loc) · 2.34 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
import React, {useEffect} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import HeaderComponent from './src/components/HeaderComponent';
import HomeScreen from './src/screens/HomeScreen';
import BarbotScreen from './src/screens/BarbotScreen';
import BottleTutorial from './src/tutorials/BottleTutorial';
import SettingsScreen from './src/screens/SettingsScreen';
import EditRecipeScreen from './src/screens/EditRecipeScreen';
import 'react-native-gesture-handler';
import SplashScreen from 'react-native-splash-screen';
const App = () => {
console.disableYellowBox = true; //REMOVE AFTER TESTING
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<NavigationContainer>
<RootStack />
</NavigationContainer>
);
};
const Stack = createStackNavigator();
function RootStack() {
return (
<Stack.Navigator
initialRouteName="Home"
screenOptions={{gestureEnabled: false}}>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{
headerTitle: 'BarBot',
headerStyle: {
backgroundColor: '#1C404F',
shadowOpacity: 0,
},
headerTitleStyle: {
color: 'black',
fontSize: 26,
fontFamily: 'Chalkboard SE',
},
}}
/>
<Stack.Screen
name="ManageBarbot"
component={BarbotScreen}
options={{
headerTitle: 'Manage BarBot',
headerStyle: {
backgroundColor: '#1C404F',
shadowOpacity: 0,
},
headerTitleStyle: {
color: 'black',
fontSize: 22,
fontFamily: 'Chalkboard SE',
},
}}
/>
<Stack.Screen name="BottleTut" component={BottleTutorial} />
<Stack.Screen name="Settings" component={SettingsScreen} />
<Stack.Screen
name="EditRecipe"
component={EditRecipeScreen}
options={{
headerTitle: 'Edit Recipe',
headerStyle: {
backgroundColor: '#1C404F',
shadowOpacity: 0,
},
headerTitleStyle: {
color: 'black',
fontSize: 22,
fontFamily: 'Chalkboard SE',
},
}}
/>
</Stack.Navigator>
);
}
export default App;