Skip to content

Gesture Handler v3.5.0 adds new event types for v3 gestures

updated

Gesture Handler v3.5.0 has been released. The release notes list one entry under "Important changes": Begin, Deactivate and Finalize event types have been added for v3 gestures (#4668).

Bug fixes

The release includes a number of fixes across platforms:

  • iOS: button children are kept in mount order behind the underlay layer; Pan velocity is reported as zero when the pointer rested before release; a missing onPressOut in StatefulPressable is fixed; accessibilityElementsHidden children are skipped when inferring a button label; and touch-up delivery is no longer delayed under a Manual gesture.
  • Android: only the handlers extracted for the same pointer are checked; HasChildPressedStateDelay is kept in minified builds; the press stays alive while a Pressable waits for another gesture; and native touches are cancelled before terminal event cleanup.
  • Web: zero Pan velocity is reported when the pointer rested before release; only handlers recorded for the same pointer are checked; Hover gesture events report the hovering pointer's type; hover starts on the first pointer move when pointerenter was missed; and moves that leave or re-enter the view are handled as out-of-bounds moves.
  • Cross-platform: cancelled ReanimatedSwipeable and ReanimatedDrawerLayout pans are undone; Reanimated subscriptions are fixed when replacing a mounted gesture; JS responder events are marked for Virtual and Intercepting detectors; and the Pressable long press timer stops on touch up.

Docs

The documentation now covers gesture cancellation when a detector's view is reordered, and the ReanimatedSwipeable example attaches the action to the row edge.

Miscellaneous

  • The disableReanimated prop has been removed from components.
  • Jest: an opt-out for the GestureHandlerRootView check was added, and installUIRuntimeBindings is mocked in jestSetup.js.
  • Reanimated deep imports are kept out of web bundles.
  • An unused enabled listener was removed from useJSResponderHandler.
  • The compatibility table was updated for 3.4.0.

The release also contains several Dependabot dependency bumps and welcomes six new contributors.

Source: github.com