-
Notifications
You must be signed in to change notification settings - Fork 725
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
Add modalOnResponderTerminationRequest property #47
Conversation
Update with modalOnResponderTerminationRequest documentation.
Awesome! |
But I think we should set |
add `modalOnResponderTerminationRequest` function to custom define touch responder logic #47
Actually when it returns |
Actually, sorry I just realized I misread your comment. You're right, returning It's possible this would be a breaking change for anyone who has written workarounds to this in their own apps. |
This feature will prevent the |
According to the docs (https://facebook.github.io/react-native/docs/gesture-responder-system.html#responder-lifecycle) the default value this function returns is Try passing in a function that returns true, and see if that works. RN will go to the deepest node first to see if it's trying to request being the responder. It will then bubble up to see if any of that node's parent/grandparents are also trying to become the responder. When So basically your |
I see. But this bug only grow in 7p, others work fine. And if we can only return |
Yeah I find the gesture responder is a bit weird. Is it an OS level problem? Is your 7P on iOS 10 whereas the other devices are on iOS 9? I found there's definitely slightly differing behaviour between gesture responders on the iOS 9 simulator and my physical device (Nexus 6P running Android 6.0.1) |
I find the problem only grow in my 7p and 7p simulator, all with IOS 10. But the user report that his 6S also have this problem. Maybe it's OS version problem. |
@feyy I'm running into this issue with a tester who is using an iPhone 7 with iOS 10 as well. I have tested on an iPad Mini 2 running iOS 10.1.11 and it works, so it seems it may be device specific. |
@feyy I found this thread via this issue #50. I tested this component on an iphone 6s and iphone 6s plus and couldn't dismiss the modal via the Confirm, Cancel or the modal background easily without tapping it multiple times. Just wanted to let you know regarding which models aren't working. Using v1.3.1 right now. |
Great PR. Very helful. Thank you. |
Was having issues where a custom Gesture Responder on one of my views was being triggered when scrolling up and down on the iOS Date Picker Modal. Added this property to override
onResponderTerminationRequest
callback on the Date Picker Modal.By default the behaviour will be the same as before.