Skip to content

Instantly share code, notes, and snippets.

@csandeep
Created March 7, 2016 12:35
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 csandeep/a636fbb51b24f1fa143a to your computer and use it in GitHub Desktop.
Save csandeep/a636fbb51b24f1fa143a to your computer and use it in GitHub Desktop.
renderScene(route, navigator) {
switch (route.id) {
case "ArticleMainView":
let store = configureStore(route.post);
delete route.post; // TODO: not sure if I should remove this
return (
<Provider store={store}>
<ArticleMainView navigator={navigator} {...route}/>
</Provider>
);
default:
return <LandingView navigator={navigator} route={route}/>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment