react-native-gesture-handler
react-native-gesture-handler copied to clipboard
waitFor taps on web only works if the components overlap
See this example:
https://snack.expo.io/7ZTv9L6CR
You can click on either the orange area or the background on Android. You can no longer click on the background on web, presumably because it is waiting for a "rejected" message from that child handler which never arrives.
I note that the default behaviour on mobile seems to be that only one of the handlers triggers, even if waitFor
is not used. This is not the case on the web, where both handlers trigger.
Hi, this issue should be fixed in 2.6.1.
Note that this change is available in new web implementation. To enable it, call enableExperimentalWebImplementation()
in the root of your project
I'll close the issue since the new web implementation is enabled by default starting with 2.10.0.