about summary refs log tree commit diff
path: root/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-10-31 17:34:33 +0000
committerGitHub <noreply@github.com>2024-10-31 17:34:33 +0000
commitd85dcc3dd06b49fccee66bc9e16cd8d0938f5c82 (patch)
treef04aaf9efcb559ac37d74d9f19bdfb03454bfcfd /src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
parent41452de1657debe647f6b135359a65d349270bc4 (diff)
downloadvoidsky-d85dcc3dd06b49fccee66bc9e16cd8d0938f5c82.tar.zst
Explicitly mark lightbox worklets (#6038)
Diffstat (limited to 'src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx')
-rw-r--r--src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
index c81943948..f21953498 100644
--- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
+++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
@@ -113,12 +113,14 @@ const ImageItem = ({
   }
 
   const singleTap = Gesture.Tap().onEnd(() => {
+    'worklet'
     runOnJS(onTap)()
   })
 
   const doubleTap = Gesture.Tap()
     .numberOfTaps(2)
     .onEnd(e => {
+      'worklet'
       const {absoluteX, absoluteY} = e
       runOnJS(handleDoubleTap)(absoluteX, absoluteY)
     })