From bed62f5f4cd2f005e596afede9cff5266fc248d9 Mon Sep 17 00:00:00 2001 From: James Pepper Date: Tue, 10 Feb 2026 10:19:52 +0000 Subject: [PATCH] Fix for Unknown directive Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- components/AnimatedPressable.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/AnimatedPressable.tsx b/components/AnimatedPressable.tsx index a31a20b..1df40b0 100644 --- a/components/AnimatedPressable.tsx +++ b/components/AnimatedPressable.tsx @@ -70,7 +70,6 @@ export default function AnimatedPressable({ const tapGesture = Gesture.Tap() .enabled(!disabled) .onBegin(() => { - 'worklet'; scale.value = withSpring(scaleDown, SPRING_CONFIG); opacity.value = withSpring(0.9, SPRING_CONFIG); if (haptic !== 'none') { @@ -78,11 +77,9 @@ export default function AnimatedPressable({ } }) .onEnd(() => { - 'worklet'; runOnJS(handlePress)(); }) .onFinalize(() => { - 'worklet'; scale.value = withSpring(1, SPRING_CONFIG); opacity.value = withSpring(1, SPRING_CONFIG); }); @@ -91,7 +88,6 @@ export default function AnimatedPressable({ .enabled(!disabled && !!onLongPress) .minDuration(500) .onStart(() => { - 'worklet'; runOnJS(triggerHaptic)('medium'); runOnJS(handleLongPress)(); });