Closed
Description
Not sure if I'm missing something, but does NavigatorIOS
have a way of notifying its owner that there is a new top route because the "<" back button was pressed? Otherwise, to get that functionality, the removed component would have to itself notify during componentWillUnmount
, and that just feels weird.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
vjeux commentedon Feb 2, 2015
cc @evv
vjeux commentedon Feb 2, 2015
@ericvicenti actually :p
zertosh commentedon Feb 2, 2015
@vjeux: So far I'm having a great time with react-native. I wrote a tumblr browser that uses the flux pattern heh. This is what it looks like: min-s-react-native-demo-gif. (I'm not inlining the gif because it's too distracting.)
vjeux commentedon Feb 2, 2015
Nice! Glad to hear :)
Hopefully we can get gif support soon so that you can have a fully functional app soon
paramaggarwal commentedon Feb 4, 2015
Unfortunately, the default back button of UINavigationController does not provide an event. The way to get around it is to either set your custom back button on the left side, or to implement
- viewWillDisappear:
in iOS. So I guess, this limitation is here to stay.vjeux commentedon Feb 7, 2015
Since iOS doesn't support it, let's close this for now.
liubko commentedon May 16, 2015
@paramaggarwal is it possible to be notified when any rote changes?
something like
I mean when someone do
navigator.push(...)
paramaggarwal commentedon Jun 22, 2015
@liubko please look into
Navigator
instead, which is much more customisable. Docs are here: Navigator Comparisonarypurnomoz commentedon Jun 22, 2015
i think you can wrap the route component with a wrapper and listen to the wrapper's
componentWillUnmount
Merge pull request facebook#26 from spicyj/nsn
JSONKit usage here may cause serious crash hard to debug(I found the …
9 remaining items