-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
33 lines (27 loc) · 971 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
25
26
27
28
29
30
31
32
33
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import * as React from 'react';
import { NavigationContainer, StackActions } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { BoardScreen } from './screens/BoardScreen';
import { ArticleScreen } from './screens/ArticleScreen';
import { RootStackParamList } from './models/Navigation';
const Stack = createNativeStackNavigator<RootStackParamList>();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='BoardScreen'>
<Stack.Screen name='BoardScreen' component={BoardScreen} />
<Stack.Screen name='ArticleScreen' component={ArticleScreen} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default App;