text: import {
    createAppContainer,
    createSwitchNavigator,
    createBottomTabNavigator,
  } from 'react-navigation';
  
  import Welcome from '~/pages/Welcome';
  import Repositories from '~/pages/Repositories';
  import Organizations from '~/pages/Organizations';
  import Issues from '~/pages/Issues';
  
  const Routes = (userLogged = false) => createAppContainer(
    createSwitchNavigator(
      {
        Welcome,
        Issues,
        User: createBottomTabNavigator(
          {
            Repositories,
            Organizations,
          },
          {
            tabBarOptions: {
              showIcon: true,
              showLabel: false,
              activeTintColor: '#ffffff',
              inactiveTintColor: 'rgba(255,255,255,0.3)',
              style: {
                backgroundColor: '#8080c0',
              },
            },
          },
        ),
      },
      {
        initialRouteName: userLogged ? 'User' : 'Welcome',
      },
    ),
  );
  
  export default Routes;
  