-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
24 lines (21 loc) · 910 Bytes
/
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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const stack = createNativeStackNavigator();
import LoginForm from './components/loginpage';
import HomePage from './components/homepage';
import SplashScreen from './components/splashscreen';
import QuizPage from './components/quizpage';
export default function App() {
return (
<NavigationContainer>
<stack.Navigator initialRouteName='Splash'>
<stack.Screen name="Splash" component={SplashScreen} />
<stack.Screen name="Login" component={LoginForm} />
<stack.Screen name="Home" component={HomePage} />
<stack.Screen name="Quiz" component={QuizPage} />
</stack.Navigator>
</NavigationContainer>
);
}