Uh oh!
There was an error while loading. Please reload this page.
[Navigator] Pop route from stack when dismissed via gesture. - #1018
[Navigator] Pop route from stack when dismissed via gesture.#1018mwilc0x wants to merge 1 commit into
Conversation
brentvatne
commented
Apr 28, 2015
@mjw56 - just to clarify: When you pull down to dismiss a view that was introduced with FloatFromBottom it currently does not pop the route from the stack but does dismiss the view. This pull request also removes it from the route stack. Is this correct? |
mwilc0x
commented
Apr 29, 2015
@brentvatne hey, yeah that's correct. It will remove it from the stack and call the dismissed component's componentWillUnmount lifecycle hook. @ericvicenti can you help verify this is the right fix? |
There was a problem hiding this comment.
I probably wouldn't do it this way. This will theoretically start the transition twice, and _handlePop also sometimes calls pop on child navigators instead of itself
I have refactored this code already and I think I have this issue fixed. The new code will land soon and we can double check
mwilc0x
commented
Apr 29, 2015
Ok, thanks for your reply @ericvicenti! I will close this and let it be handled in your refactored code. Cheers |
vitch
commented
Apr 29, 2015
I've just run into the same problem. Any ETA on when the refactored code will land? Also, #1025 can probably be closed along with this? |
skevy
commented
May 18, 2015
@ericvicenti running into this issue as well...any updates on the refactor? |
This PR fixes an issue described in #1014 where a route is not being removed from the stack when dismissed via a pop gesture.