-
Notifications
You must be signed in to change notification settings - Fork 460
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
pointerEvents="none" on <Canvas /> not working on android? #2551
Comments
This issue was reported in the past, but I can confirm that it's happening today with |
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Issue: pointerEvents non not working on Android cf: Shopify/react-native-skia#2551
Same, checked on |
I found solution, need to wrap Canvas in View with pointerEvents="none"
|
Any updates on this issue? I'm having the same problem and would like to move away from the workaround above |
This will not work for me as I want to wrap the entire home screen in canvas for a animation |
@vinayaksaubhri Tell me if you found a solution to the problem? |
@vinayaksaubhri With a similar use case, it works if you make the parent view also cover the whole screen.
|
Description
on Android when I have the Canvas as an overlay using StyleSheet.absoluteFill and I set the prop pointerEvents="none" then I still can not select any buttons below the Canvas overlay, as if the Canvas is still capturing the events, it works perfectly on iOS.
Version
1.2.3
Steps to reproduce
use the Canvas element as an overlay to a View with buttons using absolute positioning and then set the pointerEvents to none, the buttons would still not be pressable on Android.
Snack, code example, screenshot, or link to a repository
If I have an overlay component like so:
And I have Screen component like so:
I would not be able to select the button on Android.
The text was updated successfully, but these errors were encountered: