From b5796de6d71727e7a0152c50f8af5e0b9e2e1e57 Mon Sep 17 00:00:00 2001 From: Ebisuzawa Kurumi <164317648+shovel-kun@users.noreply.github.com> Date: Sun, 22 Sep 2024 04:12:15 +0800 Subject: [PATCH] fix: add missing worklet directive --- src/gestures.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gestures.tsx b/src/gestures.tsx index f6f6a26..cd180d8 100644 --- a/src/gestures.tsx +++ b/src/gestures.tsx @@ -112,6 +112,8 @@ export const ToastSwipeHandler: React.FC< }); const tap = Gesture.Tap().onEnd(() => { + 'worklet'; + if (onPress) { runOnJS(onPress)(); }