-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
58 lines (55 loc) · 2.11 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
import 'expo-dev-client';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import React from 'react';
import { Provider } from 'react-native-paper';
import NavBarContainer from './src/components/NavBarContainer.js';
import { theme } from './src/core/theme';
import { AuthProvider } from './src/providers/AuthProvider.js';
import { FirebaseProvider } from './src/providers/FirebaseProvider.js';
import { PatternProvider } from './src/providers/PatternProvider.js';
import {
InDrillScreen,
LoginScreen,
RegisterScreen,
ResetPasswordScreen,
StartScreen,
ResultInputScreen,
} from './src/screens';
const Stack = createStackNavigator();
export default function App() {
return (
<FirebaseProvider>
<AuthProvider>
<PatternProvider>
<Provider theme={theme}>
<NavigationContainer>
{/* <Stack.Navigator
initialRouteName="NavBarContainer"
name="NavBarContainer"
component={NavBarContainer}
screenOptions={{
headerShown: false,
}}> */}
<Stack.Navigator
initialRouteName="StartScreen"
name="StartScreen"
component={StartScreen}
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="StartScreen" component={StartScreen} />
<Stack.Screen name="LoginScreen" component={LoginScreen} />
<Stack.Screen name="RegisterScreen" component={RegisterScreen} />
<Stack.Screen name="NavBarContainer" component={NavBarContainer} />
<Stack.Screen name="InDrillScreen" component={InDrillScreen} />
<Stack.Screen name="ResultInputScreen" component={ResultInputScreen} />
<Stack.Screen name="ResetPasswordScreen" component={ResetPasswordScreen} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
</PatternProvider>
</AuthProvider>
</FirebaseProvider>
);
}