-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
46 lines (42 loc) · 1.53 KB
/
Copy pathApp.js
File metadata and controls
46 lines (42 loc) · 1.53 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
import React from 'react';
import {StyleSheet, View} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Home from './Screens/Home';
import GlobalContextProvider from './Contexts/GlobalContext';
import Results from './Screens/Results';
import AuthContextProvider from './Contexts/useAuthContext';
import Login from './Screens/Login';
import SignUp from './Screens/SignUp';
import WatchLater from './Screens/WatchLater';
import Recipe from './Screens/Recipe';
const Stack = createNativeStackNavigator();
const App = () => {
return (
<AuthContextProvider>
<GlobalContextProvider>
<View style={styles.appContainer}>
<NavigationContainer>
<Stack.Navigator
screenOptions={{headerShown: false}}
initialRouteName="Home">
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Results" component={Results} />
<Stack.Screen name="Recipe" component={Recipe} />
<Stack.Screen name="WatchLater" component={WatchLater} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="SignUp" component={SignUp} />
</Stack.Navigator>
</NavigationContainer>
</View>
</GlobalContextProvider>
</AuthContextProvider>
);
};
const styles = StyleSheet.create({
appContainer: {
flex: 1,
backgroundColor: '#fafafa',
},
});
export default App;