openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
191 stars 58 forks source link

Is there a way to "disable" the tapping on ReactNativeZoomableView? #27

Closed EricLi35 closed 2 years ago

EricLi35 commented 2 years ago

I have a ReactNativeZoomableView wrapping around and Svg, which wraps the Circle. The code structure looks something similar to `

Alert.alert("Circle has been tapped")} />

`.

The issue is that if I tap on the Circle, the onPress handler from Circle won't be called, because ReactNativeZoomableView is "in the way".

I appreciate any solutions/workarounds to this problem, thanks so much in advance

maartenvandillen commented 1 year ago

Hi @EricLi35 did you solve this? I'm having the opposite problem. My onPress is working fine on the SVG element (path) but I can't pan when dragging with one finger. That only works outside the SVG path.