Compared with 2.32.0: `GestureType`, `ForceTouchGestureHandlerEventPayload`, `TapGestureHandlerProps`, `ForceTouchGestureHandlerProps`, `ForceTouchGestureChangeEventPayload`, and 65 more. 24 newly deprecated.
react-native-gesture-handler 2.32.0 → 3.4.0: deprecates 70 API(s): from its source to your code
PanGestureChangeEventPayload: `PanGestureChangeEventPayload` is deprecated and will be removed in the future. Please use `PanGestureActiveEvent` instead.
PinchGestureHandlerProps: PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead.
PinchGestureChangeEventPayload: `PinchGestureChangeEventPayload` is deprecated and will be removed in the future. Please use `PinchGestureActiveEvent` instead.
RotationGestureHandlerProps: RotationGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Rotation()` instead.
FlingGestureHandlerProps: FlingGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Fling()` instead.
TapGestureHandler: TapGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Tap()` instead. TapGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Tap()` instead.
ForceTouchGestureHandler: ForceTouchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.ForceTouch()` instead. ForceTouchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.ForceTouch()` instead.
LongPressGestureHandler: LongPressGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.LongPress()` instead. LongPressGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.LongPress()` instead.
PanGestureHandler: PanGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pan()` instead. PanGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pan()` instead.
PinchGestureHandler: PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead. PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead.
RotationGestureHandler: RotationGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Rotation()` instead. RotationGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Rotation()` instead.
FlingGestureHandler: FlingGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Fling()` instead. FlingGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Fling()` instead.
NativeViewGestureHandlerProps: NativeViewGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Native()` instead.
Gesture: `Gesture` builder API is deprecated and will be removed in a future version of Gesture Handler. Please migrate to the new, hook-based API. `Gesture` is the object that allows you to create and compose gestures. ### Remarks - Consider wrapping your gesture configurations with `useMemo`, as it will reduce the amount of work Gesture Handler has to do under the hood when updating gestures. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/gesture
NativeViewGestureHandler: NativeViewGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Native()` instead. NativeViewGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Native()` instead.
RawButtonProps: `RawButtonProps` is deprecated, use `TouchableProps` instead
BaseButtonProps: `BaseButtonProps` is deprecated, use `TouchableProps` instead
RectButtonProps: `RectButtonProps` is deprecated, use `TouchableProps` instead
BorderlessButtonProps: `BorderlessButtonProps` is deprecated, use `TouchableProps` instead
RawButton: `RawButton` is deprecated, use `Touchable` instead
BaseButton: `BaseButton` is deprecated, use `Touchable` instead
RectButton: `RectButton` is deprecated, use `Touchable` with `activeUnderlayOpacity={0.7}` instead
BorderlessButton: `BorderlessButton` is deprecated, use `Touchable` with `activeOpacity={0.3}` instead
TouchableHighlightProps: TouchableHighlight will be removed in the future version of Gesture Handler. Use Pressable instead.
TouchableOpacityProps: TouchableOpacity will be removed in the future version of Gesture Handler. Use Pressable instead.
TouchableWithoutFeedbackProps: TouchableWithoutFeedback will be removed in the future version of Gesture Handler. Use Pressable instead.
TouchableHighlight: TouchableHighlight will be removed in the future version of Gesture Handler. Use Pressable instead. TouchableHighlight follows RN's implementation
TouchableNativeFeedback: TouchableNativeFeedback will be removed in the future version of Gesture Handler. Use Pressable instead.
TouchableOpacity: TouchableOpacity will be removed in the future version of Gesture Handler. Use Pressable instead. TouchableOpacity bases on timing animation which has been used in RN's core
TouchableWithoutFeedback: TouchableWithoutFeedback will be removed in the future version of Gesture Handler. Use Pressable instead.
ForceTouchGestureHandlerGestureEvent: ForceTouchGestureHandler is deprecated and will be removed in the future.
ForceTouchGestureHandlerStateChangeEvent: ForceTouchGestureHandler is deprecated and will be removed in the future.
ForceTouchGestureHandlerProperties: ForceTouch gesture is deprecated and will be removed in the future.
Gesture.Tap: `Gesture.Tap()` is deprecated and will be removed in the future. Please use `useTapGesture` instead. A discrete gesture that recognizes one or many taps. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture
Gesture.Pan: `Gesture.Pan()` is deprecated and will be removed in the future. Please use `usePanGesture` instead. A continuous gesture that can recognize a panning (dragging) gesture and track its movement. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture
Gesture.Pinch: `Gesture.Pinch()` is deprecated and will be removed in the future. Please use `usePinchGesture` instead. A continuous gesture that recognizes pinch gesture. It allows for tracking the distance between two fingers and use that information to scale or zoom your content. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pinch-gesture
Gesture.Rotation: `Gesture.Rotation()` is deprecated and will be removed in the future. Please use `useRotationGesture` instead. A continuous gesture that can recognize rotation and track its movement. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/rotation-gesture
Gesture.Fling: `Gesture.Fling()` is deprecated and will be removed in the future. Please use `useFlingGesture` instead. A discrete gesture that activates when the movement is sufficiently fast. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture
Gesture.LongPress: `Gesture.LongPress()` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead. A discrete gesture that activates when the corresponding view is pressed for a sufficiently long time. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture
Gesture.ForceTouch: `Gesture.ForceTouch()` is deprecated and will be removed in the future. #### iOS only A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/force-touch-gesture
Gesture.Native: `Gesture.Native()` is deprecated and will be removed in the future. Please use `useNativeGesture` instead. A gesture that allows other touch handling components to participate in RNGH's gesture system. When used, the other component should be the direct child of a `GestureDetector`. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/native-gesture
Gesture.Manual: `Gesture.Manual()` is deprecated and will be removed in the future. Please use `useManualGesture` instead. A plain gesture that has no specific activation criteria nor event data set. Its state has to be controlled manually using a state manager. It will not fail when all the pointers are lifted from the screen. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/manual-gesture
Gesture.Hover: `Gesture.Hover()` is deprecated and will be removed in the future. Please use `useHoverGesture` instead. A continuous gesture that can recognize hovering above the view it's attached to. The hover effect may be activated by moving a mouse or a stylus over the view. https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/hover-gesture