Created
September 26, 2017 17:48
-
-
Save diego3g/422d28071b60738da323d25116513e21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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