728x90
반응형
import { createStackNavigator } from 'react-navigation-stack';
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import { createDrawerNavigator } from 'react-navigation-drawer';
import login from './Login/login'
import intro from './intro'
// 로그인과 인트로 화면은, 스텍으로
const Loging_in_Index = createStackNavigator(
{
login: { screen: login }
}
)
const Intro_in_Index = createStackNavigator(
{
intro :{screen:intro }
}
)
const Start_View = createAppContainer(
createSwitchNavigator(
{
Loging_in_Index:Loging_in_Index,
Intro_in_Index:Intro_in_Index
},
{
initialRouteName: 'Intro_in_Index',
}
)
)
export default Start_View
728x90
반응형
'React Native' 카테고리의 다른 글
ReactNative 에서 android 퍼미션 요청 하기 (1) | 2020.01.16 |
---|---|
TextInput 비밀번호 (0) | 2020.01.15 |
4. 여러개 StyleSheet 적용하는 방법 (0) | 2020.01.08 |
시작 컴포넌트 바꾸기. 앱의 진입점 바꾸기. (0) | 2020.01.07 |
3. 리엑트 네이티브 생명주기 ( Lifecycle ) (0) | 2020.01.07 |