forked from Winz18/Online-Learning-Mobile_app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
50 lines (44 loc) · 1.72 KB
/
App.tsx
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import React from 'react';
import MainScreen from './MainScreen';
import CourseScreen from './CourseScreen';
import ModuleScreen from './ModuleScreen';
import RankingScreen from './RankingScreen.tsx';
import QuizScreen from './QuizScreen.tsx';
import LoginScreen from './LoginScreen.tsx';
import SignUpScreen from './SignupScreen.tsx';
import ProfileScreen from './ProfileScreen.tsx';
import {AuthProvider} from './AuthProvider.tsx';
import UploadScreen from './UploadScreen.tsx';
import ModuleEdit from './ModuleEdit.tsx';
const Stack = createNativeStackNavigator();
function App(): React.JSX.Element {
return (
<AuthProvider>
<NavigationContainer>
<Stack.Navigator
initialRouteName="Login"
screenOptions={{headerShown: false}}>
<Stack.Screen name="Home" component={MainScreen} />
<Stack.Screen name="Course" component={CourseScreen} />
<Stack.Screen name="Module" component={ModuleScreen} />
<Stack.Screen name="Ranking" component={RankingScreen} />
<Stack.Screen name="Quiz" component={QuizScreen} />
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="SignUp" component={SignUpScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Upload" component={UploadScreen}/>
<Stack.Screen name="ModuleEdit" component={ModuleEdit}/>
</Stack.Navigator>
</NavigationContainer>
</AuthProvider>
);
}
export default App;