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.
Reanimated has a hard requirement that a worklet must be defined before the worklet that calls it is. Otherwise, the app will crash. At the same time there's no linter that would apply the rule only for worklets, so we have to turn it on for everything. Quite inconvenient, but gets us one step toward reanimated for now, and can be revisited for future improvements.
There's no logic change in this PR. Only functions getting moved around.
Note
Refactors and reorders code to comply with
no-use-before-define, extracting shared logic into hooks/helpers and adjusting call sites without changing behavior.useZoomSubject(measurement) anduseDebugPoints(pinch debug) hooks, and moves zoom step calc tohelper/getNextZoomStepReactNativeZoomableViewto use new hooks, replaces inline helpers, and reorders pan/gesture handlers and setupAnimatedTouchFeedback,StaticPin, and debug helpers; map files addedWritten by Cursor Bugbot for commit 16483a8. Configure here.