Skip to content

Commit

Permalink
fix: add missing worklet directive
Browse files Browse the repository at this point in the history
  • Loading branch information
shovel-kun authored Sep 21, 2024
1 parent a583c33 commit b5796de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gestures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export const ToastSwipeHandler: React.FC<
});

const tap = Gesture.Tap().onEnd(() => {
'worklet';

if (onPress) {
runOnJS(onPress)();
}
Expand Down

0 comments on commit b5796de

Please sign in to comment.