React Native support
React Native 0.87 is the last React Native version supported by the 2.x line. Support for newer React Native releases continues in Gesture Handler 3.
❗ Important changes
- Support React Native 0.87 on 2.x by @m-bert in #4497
- feat: Adopt AGP v9 by @hurali97 in #4263
- Fix fatal crash
Cannot read property 'translationX' of undefinedwhen a touch event is serialized withoutallTouchesby @huextrat in #4316
🐛 Bug fixes
- [Android | Web] Disable pointer events on hidden
Swipeableactions container by @jamesacklin in #4192 - [Android] Fix mouse interactions by @m-bert in #4265
- fix: crash when mount listener fires after GestureDetector unmount by @kosmydel in #4268
- Remove
opacityfromSwipeableaction panels by @m-bert in #4271 - [Android] Fix text getting selected during gestures by @j-piasecki in #4273
- [Android] Fix ConcurrentModificationException in GestureHandlerOrchestrator by @kosmydel in #4274
- [iOS] Move
Tapcancelation todispatch_afterby @m-bert in #4280 - fix: remove UIPointerInteraction from the view when unbinding the hover handler by @petterikorpimaa in #4291
- [iOS] Fix js responder cancelation in modals by @m-bert in #4306
- [iOS] Fix gesture callback guarantees when view is detached mid-gesture by @m-bert in #4321
- Fix
minVelocityprops behavior by @m-bert in #4327 - [Web] Fix incorrectly calculated
timeDeltaby @m-bert in #4329 - [Web] Fix incorrect
Tapoffset by @m-bert in #4330 - [Android] Guard update events to only be dispatched in ACTIVE state by @j-piasecki in #4332
- [macOS] Fix
Panactivation criteria being ignored by @m-bert in #4387 - [macOS] Fix
manualActivationnever blocking gesture activation by @m-bert in #4389 - [macOS] Fix touch events never being delivered by @m-bert in #4390
- [macOS] Fix
Flingnot sending touch events and begin/end states consistently by @m-bert in #4395 - [Android] Fix handlers cancelled while awaiting leaking in the orchestrator by @m-bert in #4402
- Clear pending timers on unmount in StatefulPressable by @m-bert in #4413
- Forward
borderlessandforegroundfromandroid_rippleby @m-bert in #4442 - Keep ReanimatedSwipeable native handlers stable when event callbacks change by @ngocdevv in #4466
- Fix ReanimatedDrawerLayout animation speed after rerender by @ngocdevv in #4470
- Don't pass dependencies to Reanimated hooks on native by @m-bert in #4472
- [Android] Don't let an awaiting parent handler cancel the child it is waiting for by @j-piasecki in #4476
- Reset
numberOfPointersinLongPressGestureHandlerby @giaBaoJS in #4479 - Reset
enableTrackpadTwoFingerGesturein webPanGestureHandlerby @giaBaoJS in #4480 - Reset accumulated wheel delta in web
WheelEventManagerby @giaBaoJS in #4484 - [Web] Reset NativeViewGestureHandler config on a full config replace by @j-piasecki in #4486
- [Android] Stop nested scroll when a native handler's gesture ends by @m-bert in #4492
- [iOS] Keep button hit testing within its own subtree by @rileysay in #4495
- [Web] Drop handlers that never began from the orchestrator by @m-bert in #4505
- [iOS] Preserve disabled button targets under box-none parents by @rileysay in #4506
- fix: stop circular GestureStateManagerType import on web by @roryabraham in #4508
🔢 Miscellaneous
- [Android] Do not set explicit versions in
build.gradleby @m-bert in #4248 - [Android] Don't delay child pressed state in buttons by @j-piasecki in #4296
- Fix Easing import in LongPress example by @haxonadora in #4298
- [macOS] Add coordinates to
Hoverevents by @m-bert in #4304 - Export
PressableEventtype by @m-bert in #4324 - Don't dispatch orphaned touch events by @m-bert in #4341
- [iOS] Check if
enableTrackpadTwoFingerGestureisnilbefore applying by @m-bert in #4349 - [Android] Fix basic-example
hermescpath by @j-piasecki in #4371 - Chore: ref forwarding to child in wrap v2 by @tshmieldev in #4385
- [Apple] Remove trailing semicolons from
RNGHGestureRecognizerState*macros by @m-bert in #4391 - Derive
Pressablepressed state fromtestOnly_pressedby @m-bert in #4414 - Update
Pressableprops by @m-bert in #4421 - [General] Align
pointerTypeacross native and JS by @j-piasecki in #4403 - Resolve
DrawerLayoutAndroidlazily to avoid RN deprecation warning on import by @m-bert in #4493
Full Changelog: v2.32.0...v2.33.0
cherry-pick thread: #4498