-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
29 lines (25 loc) · 1.06 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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { HomeScreen } from './screens/home.screen';
import { QuestionScreen } from './screens/questions.screen';
import { AboutScreen } from './screens/about.screen';
import { HelpScreen } from './screens/help.screen';
import { View } from 'react-native';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={HomeScreen} options={{ title: 'Overview' }} />
<Stack.Screen
name="Questions"
component={QuestionScreen}
options={{ title: 'Random Questions' }}
/>
<Stack.Screen name="About" component={AboutScreen} options={{ title: 'About ME' }} />
<Stack.Screen name="Help" component={HelpScreen} options={{ title: 'Help and Contact' }} />
</Stack.Navigator>
</NavigationContainer>
);
}