Explicitly mark lightbox worklets (#6038)

This commit is contained in:
dan
2024-10-31 17:34:33 +00:00
committed by GitHub
parent 41452de165
commit d85dcc3dd0
2 changed files with 11 additions and 0 deletions
@@ -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)
})