text: import { createAppContainer, createSwitchNavigator } from 'react-navigation';
  import { createBottomTabNavigator } from 'react-navigation-tabs';
  
  import SignIn from '~/pages/SignIn';
  import SignUp from '~/pages/SignUp';
  
  import Dashboard from '~/pages/Dashboard';
  import Profile from '~/pages/Profile';
  import Subscriptions from '~/pages/Subscriptions';
  
  export default (isSigned = false) =>
    createAppContainer(
      createSwitchNavigator(
        {
          Sign: createSwitchNavigator({
            SignIn,
            SignUp,
          }),
          App: createBottomTabNavigator(
            {
              Dashboard,
              Subscriptions,
              Profile,
            },
            {
              resetOnBlur: true,
              tabBarOptions: {
                keyboardHidesTabBar: true,
                activeTintColor: '#4C8056',
                inactiveTintColor: '#999',
                style: {
                  backgroundColor: '#fff',
                  borderTopColor: '#ddd',
                },
              },
            }
          ),
        },
        {
          initialRouteName: isSigned ? 'App' : 'Sign',
        }
      )
    );
  