-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (37 loc) · 1.47 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
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LogInScreen from './screens/LogInScreen';
import HomeScreen from './screens/HomeScreen';
import BoardListScreen from './screens/BoardListScreen';
import ChatListScreen from './screens/ChatListScreen';
import AlarmScreen from './screens/AlarmScreen';
import ProfileScreen from './screens/ProfileScreen';
import WriteScreen from './screens/WriteScreen';
// Stack Navigator의 타입을 정의합니다.
export type RootStackParamList = {
LogIn: undefined;
Home: undefined;
BoardList: undefined;
ChatList: undefined;
Alarm: undefined;
Profile: undefined;
Write: undefined;
};
const Stack = createNativeStackNavigator<RootStackParamList>();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="LogIn" screenOptions={{ headerShown: false }}>
<Stack.Screen name="LogIn" component={LogInScreen} />
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="BoardList" component={BoardListScreen} />
<Stack.Screen name="ChatList" component={ChatListScreen} />
<Stack.Screen name="Alarm" component={AlarmScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Write" component={WriteScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;