-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
Gesture.Exclusive
functionality differs on iOS vs Android
#1848
Comments
Hi! This seems to be related to #1804 as I was able to reproduce it only in managed workflow. |
Thanks @j-piasecki, you're right. I ejected from expo and both platforms work fine. |
Hi, any updates with this issue? |
Just keeping this alive—I can't comment on whether this exists with the bare workflow but at the moment it seems Anyone aware of any other way to implement single and double tap gestures on the same View in this context? |
@samtgarson you can use
|
@slytter this always calls the single tap callback in my test. I would have thought that the single tap would always register before the double tap, so Race would always end up calling the single tap callback anyway? |
Description
I'm copying examples from the docs and came across the double tap example. It seems to work fine on Android, but not on iOS.
Platforms
Steps To Reproduce
mvce
example repo here. It's using expo, justyarn
andyarn start
and run iOS/Android as desired. You'll see on iOS the single is always logged (and the others never fire), but on Android they fire as expected.Expected behavior
I would expect
Gesture.Exclusive
to function as it does on Android, prioritizing the order of the gestures passed in. I've tried usingonStart
instead ofonEnd
as found in the docs here (which are slightly out of date with themaxDurationMs
prop) and ended up going with this example found hereActual behavior
On iOS, it seems like the single tap inevitably steals the gesture and always logs itself. If I comment out the single tap and run it as just double/triple, only double tap works (even though, again, I'd expect triple to take priority)
Snack or minimal code example
Example repo here
Package versions
The text was updated successfully, but these errors were encountered: