react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

Svg Image pointerEvents="none" not working on Android

Open lorenzo-ange opened this issue 1 year ago • 2 comments

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.

lorenzo-ange avatar Mar 05 '24 07:03 lorenzo-ange

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

GrinZero avatar Sep 05 '24 02:09 GrinZero

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.

bohdanprog avatar Sep 05 '24 16:09 bohdanprog