-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
22 lines (20 loc) ยท 889 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Index from './app/index.jsx';
import Choose from './app/choose.jsx';
import SignIn from './guardian/signin.jsx';
import ChildNav from './nav/childnav'; // ์์ ๋ ๋ค๋น๊ฒ์ด์
๋ฐ ์ปดํฌ๋ํธ ์ํฌํธ
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Index">
<Stack.Screen name="Index" component={Index} options={{ title: 'Home' }} />
<Stack.Screen name="Choose" component={Choose} options={{ title: 'Choose' }} />
<Stack.Screen name="SignIn" component={SignIn} options={{ title: 'Sign In' }} />
</Stack.Navigator>
<ChildNav />
</NavigationContainer>
);
}