Fix Hold Mode Gesture Handlers and Update Submodules #263
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Hold Mode Gesture Handlers and Update Submodules
🐛 Problem
The hold mode recording feature was experiencing issues where it would get stuck in hold mode, preventing users from properly stopping recordings. Additionally, the codebase was using deprecated gesture handler APIs that needed to be updated to the modern Gesture API.
🔧 Changes Made
1. Migrated to New Gesture API
PanGestureHandler→Gesture.Pan()PinchGestureHandler→Gesture.Pinch()useAnimatedGestureHandler→ Direct gesture handlers with.onBegin(),.onUpdate(),.onEnd(),.onFinalize()GestureandGestureDetectorGesture.Simultaneous()to allow pan and pinch gestures to work together2. Fixed Hold Mode Getting Stuck
.onFinalize()handler: Ensures cleanup happens in all scenarios (end, cancel, fail)handleRecordingComplete: Explicitly resetsscreenTouchActivestateuseEffect: Automatically resets screen touch and hold state when recording stopsisHoldRecordingtotruefor hold mode (not tap mode)finallyblock3. Fixed React Native Reanimated Warnings
useDerivedValueto create listeners: Properly registers listeners for shared values updated from JSonAnimatedValueUpdatewarnings for:isHoldRecordingrecordingModeSharedcurrentZoomsavedZoomcurrentTouchYinitialTouchY4. Updated Submodules
12f2ddb6)📝 Technical Details
Before
After
Warning Fix
🎯 Impact
Fixes issues with hold mode getting stuck and deprecated gesture handler warnings.