import {createSwitchNavigator} from 'react-navigation';
import AuthNavigator from './auth/AuthNavigator';
import SecuredNavigator, {NavigatorPublic} from './secured/SecuredNavigator';

const AppNavigator = createSwitchNavigator(
  {
    login: AuthNavigator,
    app: SecuredNavigator,
    appPublic: NavigatorPublic,
  },
  {
    initialRouteName: 'login',
  }
);

export default AppNavigator;
