Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_onPinchHandlerStateChange: onPinchHandlerStateChange({
lastScale,
pinchScale,
baseScale,
}),
_onPinchGestureEvent: onPinchGestureEvent(pinchScale),
});
const pan = usePan({
handlerRef: panRef,
onGestureEvent: _onGestureEvent,
onHandlerStateChange: _onHandlerStateChange,
simultaneousHandlers: pinchRef,
});
const pinch = usePinch({
handlerRef: pinchRef,
onGestureEvent: _onPinchGestureEvent,
onHandlerStateChange: _onPinchHandlerStateChange,
simultaneousHandlers: panRef,
});
return (
_onPinchHandlerStateChange: onPinchHandlerStateChange({
lastScale,
pinchScale,
baseScale,
}),
_onPinchGestureEvent: onPinchGestureEvent(pinchScale),
});
const pan = usePan({
handlerRef: panRef,
onGestureEvent: _onGestureEvent,
onHandlerStateChange: _onHandlerStateChange,
simultaneousHandlers: pinchRef,
});
const pinch = usePinch({
handlerRef: pinchRef,
onGestureEvent: _onPinchGestureEvent,
onHandlerStateChange: _onPinchHandlerStateChange,
simultaneousHandlers: panRef,
});
return (