App.js 800 Bytes
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack'
// import MainScreen from './components/MainScreen';
import Login from './source/Login';
import MainScreen from './source/MainScreen';

// const AppStackNavigator = createStackNavigator({
//   Main:{
//     screen: MainScreen // MainScreen 컴포넌트를 네비게이터에 등록
//   }
// });

// export default createAppContainer(AppStackNavigator);

const MainNavigator = createStackNavigator({
  Login : {screen: Login},
  MainScreen : {screen:MainScreen},
},
  {initialRouteName: 'Login',headerMode:'none'}
);

const App = createAppContainer(MainNavigator);

export default App;