// React navigation
import { StackNavigator } from 'react-navigation';
import Login from './screens/login/Login';
import Home from './screens/home/Home';

const AppNavigator = StackNavigator(
  {
    Login: { screen: Login },
    Authenticate: { screen: Home, path: 'localhost' },
    Home: { screen: Home },
  },
  { cardStyle: { flex: 1 } },
);

export default AppNavigator;

// React navigation
import { StackNavigator } from 'react-navigation';
import Login from './screens/login/Login';
import Home from './screens/home/Home';
import Authenticate from './screens/authenticate/authenticate';

const AppNavigator = StackNavigator(
  {
    Login: { screen: Login },
    Authenticate: { screen: Authenticate, path: 'localhost' },
    Home: { screen: Home },
  },
  { cardStyle: { flex: 1 } },
);

export default AppNavigator;

fix routes.