diff options
author | dan <dan.abramov@gmail.com> | 2024-10-31 17:34:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 17:34:33 +0000 |
commit | d85dcc3dd06b49fccee66bc9e16cd8d0938f5c82 (patch) | |
tree | f04aaf9efcb559ac37d74d9f19bdfb03454bfcfd /src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx | |
parent | 41452de1657debe647f6b135359a65d349270bc4 (diff) | |
download | voidsky-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.tsx | 2 |
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) }) |