-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavigation.js
40 lines (35 loc) · 1 KB
/
Navigation.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
import React from "react";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Login from './Login';
import Homepage from './Homepage'
import LectureView from "./LectureView";
import ExerciseView from "./ExerciseView";
const Stack = createNativeStackNavigator();
/**
* Allows client side navigation through a stack navigator.
*
* State:
* none
*
* Props:
* none
*/
function Navigation() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{
headerShown: false,
contentStyle: {
backgroundColor: '#ffff',
}
}}>
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Homepage" component={Homepage} />
<Stack.Screen name="LectureView" component={LectureView} />
<Stack.Screen name="ExerciseView" component={ExerciseView} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default Navigation;