-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
requireExternalGestureToFail is not able to block a ScrollView #3266
Comments
OMG. I accidentally imported |
That's the correct thing to do if you're using the API from RNGH2 ( Anyway, it didn't work with Generally, if you want to use
I'll see what can be done about the docs, hopefully, we'll have them updated by the time the next major releases. |
Ohh ok that makes sense (and yeah, not very obvious). Could It would be nice to mark those old top-level as |
My two cents is that |
That should be doable, I'll need to double check whether it's detectable without any false positives (they use the same native handler under the hood).
We are looking into updating them not to use the old API but we haven't reached any conclusions yet. |
Description
According to the docs,
requireExternalGestureToFail
is like the inverse ofblocksExternalGesture
.However, I can't actually get
requireExternalGestureToFail
to do anything useful with a native gesture.In particular, I want to block
ScrollView
if myPan
is being recognized.The docs lead me to believe that this code would work:
But it doesn't do anything. The ScrollView is still in control of the gesture.
Steps to reproduce
this_shouldnt_be_dragggable.mov
Snack or a link to a repository
https://snack.expo.dev/k1-MTyYfvD3wQNk3sr_je
Gesture Handler version
2.20.2
React Native version
0.76.3
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: