From d85dcc3dd06b49fccee66bc9e16cd8d0938f5c82 Mon Sep 17 00:00:00 2001
From: dan <dan.abramov@gmail.com>
Date: Thu, 31 Oct 2024 17:34:33 +0000
Subject: Explicitly mark lightbox worklets (#6038)

---
 .../com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx    | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx')

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)
     })
-- 
cgit 1.4.1

