Skip to content

Instantly share code, notes, and snippets.

@diego3g
Last active September 11, 2017 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diego3g/d7ef943328558e542159bb260fffbb3e to your computer and use it in GitHub Desktop.
Save diego3g/d7ef943328558e542159bb260fffbb3e to your computer and use it in GitHub Desktop.
// src/routes.js
import { StackNavigator } from 'react-navigation';
import Login from './pages/login';
import Logged from './pages/logged';
export const SignedOutRoutes = StackNavigator({
Login: {
screen: Login,
navigationOptions: {
title: "Entrar"
}
},
});
export const SignedInRoutes = StackNavigator({
Logged: {
screen: Logged,
navigationOptions: {
title: "Meu perfil"
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment