diff --git a/package.json b/package.json index 4e16f56..d044804 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openspacelabs/react-native-zoomable-view", - "version": "3.0.0-beta.3", + "version": "3.0.0-beta.4", "description": "A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/ReactNativeZoomableView.tsx b/src/ReactNativeZoomableView.tsx index 4b58561..1aa465c 100644 --- a/src/ReactNativeZoomableView.tsx +++ b/src/ReactNativeZoomableView.tsx @@ -413,7 +413,7 @@ const ReactNativeZoomableViewInner: ForwardRefRenderFunction< // `AnimatedTouchFeedback.onAnimationDone`, which never mounts when the // render gate fails. if (!visualTouchFeedbackEnabled || !doubleTapDelay) return; - touches.value.push(touch); + touches.value = [...touches.value, touch]; setStateTouches([...touches.value]); });