Last active
October 19, 2015 07:13
-
-
Save ide/689a6f63a0d1e2852ead to your computer and use it in GitHub Desktop.
Showing how a function creates a parameterized route
This file contains hidden or 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
function getProfileRoute(user) { | |
return { | |
renderScene(navigator) { | |
let ProfileScreen = require('./ProfileScreen'); | |
return <ProfileScreen user={user} navigator={navigator} />; | |
}, | |
getTitle() { | |
return user.fullName; | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment