Skip to content

Instantly share code, notes, and snippets.

@lintonye
Created April 17, 2017 22:05
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 lintonye/8fc2656035bd234aaa03d6bdbc4d4451 to your computer and use it in GitHub Desktop.
Save lintonye/8fc2656035bd234aaa03d6bdbc4d4451 to your computer and use it in GitHub Desktop.
"navigation" prop in transition
// The 'navigation' prop passed to PhotoGrid
navigation: {
...
state: {
routeName: 'PhotoGrid',
...
transition: { // transition is only present if it's current in transition
toRoute: 'PhotoDetail'
}
}
}
// The 'navigation' prop passed to PhotoDetail
navigation: {
...
state: {
routeName: 'PhotoDetail',
...
transition: { // transition is only present if it's current in transition
fromRoute: 'PhotoGrid'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment