Skip to content
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

Svg Image pointerEvents="none" not working on Android #2239

Open
lorenzo-ange opened this issue Mar 5, 2024 · 2 comments
Open

Svg Image pointerEvents="none" not working on Android #2239

lorenzo-ange opened this issue Mar 5, 2024 · 2 comments
Labels

Comments

@lorenzo-ange
Copy link

lorenzo-ange commented Mar 5, 2024

In an SVG with a transparent image I set pointerEvents="none" to allow another Image to receive the gesture events.
It is working fine on Web and on iOS.
It is not working on Android.

Here is a simple snack working fine on web and iOS and not working on Android that shows the problem.
In the snack if you tap on the smiling face on Android the gesture event is not firing.

https://snack.expo.dev/@lorenzoangelini/rn-svg-gesture-image-gesture-swallowing

Thank you, I am at your disposal for any need for clarification.

@GrinZero
Copy link

GrinZero commented Sep 5, 2024

My performance here is exactly the opposite of yours. I set pointerEvents to have no effect on IOS, but it works on other devices

@bohdanprog
Copy link
Member

bohdanprog commented Sep 5, 2024

Hi @lorenzo-ange, @GrinZero,

The issue was related to React Native. My colleague has fixed it. Here is the PR that resolves the problem. We’ll need to wait until these changes are released in the new React Native version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants