Skip to content

Instantly share code, notes, and snippets.

@ide
Last active October 19, 2015 07:13
Show Gist options
  • Save ide/689a6f63a0d1e2852ead to your computer and use it in GitHub Desktop.
Save ide/689a6f63a0d1e2852ead to your computer and use it in GitHub Desktop.
Showing how a function creates a parameterized route
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