import { createAppContainer, createSwitchNavigator } from 'react-navigation';

import TransitionScreen from '../../screens/auth/TransitionScreen';
import AuthStack from './AuthNavigator';
import AppStack from './AppNavigator';

const RootNavigator = createSwitchNavigator(
  {
    Loading: TransitionScreen,
    App: AppStack,
    Auth: AuthStack,
  },
  {
    initialRouteName: 'Loading',
  }
);

export default createAppContainer(RootNavigator);
