react-native-svg
react-native-svg copied to clipboard
Svg Image pointerEvents="none" not working on Android
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.
My performance here is exactly the opposite of yours. I set pointerEvents to have no effect on IOS, but it works on other devices
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.