-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V2] Fix iOS pop gesture when topBar is hidden #4568
Conversation
I tested these changes and it works |
Any updates on when this will be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been using this in production for weeks.
This would be really useful |
Merge this, please!!! |
@guyca hey, other than the conflicts, what are the requirements to have this merged? do we need tests for this? i dont see any rn, i can help out |
This probably fixes two of my open issues, any reason why this is not merged? I don’t want to have to keep a big fork just to have fixes like this in |
@rawrmaan thank you so much for doing this. Do you have an idea for when this PR could be merged? |
@guyca What can we do to help the merge along? |
Another way of fixing this would be to revert this change 11a174b The bug that this change was fixing componentDidAppear() {
Navigation.mergeOptions(this.props.componentId, {
popGesture: false,
});
}
componentDidDisappear() {
Navigation.mergeOptions(this.props.componentId, {
popGesture: true,
});
} |
60a5585
I like this PR, I upgrade version to |
@moonou the command listener is invoked only when |
First of all, thank you for this awesome library, I ran into the pop gesture issue when the top bar is hidden. I've been following this issue from when it was not merged until now. But I still can not make it work. Am I doing it wrong ? Very appreciated with any help. I'm using version 2.16 |
* Fix iOS pop gesture when nav bar is hidden * Add missing property * Factor out InteractivePopGestureDelegate into its own file * Add missing import * Make sure fix supports hidden and visible nav bars * Minor code style fix
Fixes #4455.
The broken-ness of this feature stems from an iOS bug. I adapted the fix from this StackOverflow answer: https://stackoverflow.com/questions/24710258/no-swipe-back-when-hiding-navigation-bar-in-uinavigationcontroller/41895151#41895151 It seemed like the most well-thought-out and bulletproof fix out of all the answers.
I did thoroughly test this to make sure
popGesture
works with the nav bar hidden and visible, but I did not add any e2e tests. I would like some guidance on how to test something like this (a swipe gesture) if anyone could help, as I'm not very familiar with theXCTest
framework.Thanks for an amazing library! There really is nothing close out there!