Skip to content

Commit 1828c73

Browse files
author
Andrzej Antoni Kwaśniewski
committed
remove remaining worklets
1 parent de7371a commit 1828c73

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

apps/common-app/src/new_api/complicated/camera/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export default function Camera() {
6969

7070
const takePhotoGesture = useTapGesture({
7171
onDeactivate: () => {
72-
'worklet';
7372
runOnJS(takePhoto)();
7473
captureProgress.value = withTiming(0, { duration: 1000 });
7574
},

apps/common-app/src/new_api/complicated/velocity_test/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,16 @@ export default function App() {
2424

2525
const pan = usePanGesture({
2626
onBegin: () => {
27-
'worklet';
2827
isPressed.value = true;
2928
colorProgress.value = withTiming(1, {
3029
duration: 100,
3130
});
3231
},
3332
onUpdate: (event) => {
34-
'worklet';
3533
offsetX.value += event.changeX;
3634
offsetY.value += event.changeY;
3735
},
3836
onFinalize: (event) => {
39-
'worklet';
4037
isPressed.value = false;
4138
colorProgress.value = withTiming(0, {
4239
duration: 100,

apps/common-app/src/new_api/showcase/nested_text/nested_text.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,14 @@ function LegacyDetectorExample() {
7070
);
7171

7272
const tapAll = Gesture.Tap().onStart(() => {
73-
'worklet';
7473
feedbackRef.current?.showMessage('Tapped on all text');
7574
});
7675

7776
const tapFirstPart = Gesture.Tap().onStart(() => {
78-
'worklet';
7977
feedbackRef.current?.showMessage('Tapped on "try tapping on this part"');
8078
});
8179

8280
const tapSecondPart = Gesture.Tap().onStart(() => {
83-
'worklet';
8481
feedbackRef.current?.showMessage('Tapped on "or this part"');
8582
});
8683

0 commit comments

Comments
 (0)