Skip to content

Commit 603eae0

Browse files
committed
fix(zoom): reanimated compatibility
Closes #21
1 parent c613477 commit 603eae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ZoomPdfView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function useZoomGesture(
196196

197197
const gestureHandler = useMemo(() => {
198198
return Gesture.Pinch()
199+
.runOnJS(true)
199200
.withRef(gestureRef)
200201
.onStart((e) =>
201202
focalPoint.animated.setValue({ x: e.focalX, y: e.focalY })

0 commit comments

Comments
 (0)