File tree Expand file tree Collapse file tree
apps/common-app/src/new_api Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments