Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created September 26, 2017 17:48
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/422d28071b60738da323d25116513e21 to your computer and use it in GitHub Desktop.
Save diego3g/422d28071b60738da323d25116513e21 to your computer and use it in GitHub Desktop.
import React from 'react';
import { Platform } from 'react-native';
import { StackNavigator } from 'react-navigation';
import List from './pages/list';
import Recipe from './pages/recipe';
const Router = StackNavigator({
List: { screen: List },
Recipe: {
screen: Recipe,
path: 'recipe/:recipe',
},
});
const prefix = (Platform.OS === 'ios')
? 'receitafacil://'
: 'receitafacil://receitafacil/';
export default () => <Router uriPrefix={prefix} />;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment