-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
29 lines (24 loc) · 1.05 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 React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeView from './view/HomeView';
import SettingView from './view/SettingView';
import { NavigationContainer } from '@react-navigation/native';
import { RootStackParamList } from './navigation/types';
import TestView from './view/TestView';
const RootStack = createNativeStackNavigator<RootStackParamList>();
function App(): JSX.Element {
return (
<SafeAreaProvider>
<NavigationContainer>
<RootStack.Navigator initialRouteName='Home'>
<RootStack.Screen name='Home' component={HomeView}></RootStack.Screen>
<RootStack.Screen name='Setting' component={SettingView}></RootStack.Screen>
<RootStack.Screen name='Test' component={TestView}></RootStack.Screen>
</RootStack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
);
}
export default App;