@@ -16,6 +16,8 @@ import { RotationGesture } from './rotationGesture';
1616import { TapGesture } from './tapGesture' ;
1717
1818/**
19+ * @deprecated `Gesture` builder API is deprecated and will be removed in a future version of Gesture Handler. Please migrate to the new, hook-based API.
20+ *
1921 * `Gesture` is the object that allows you to create and compose gestures.
2022 *
2123 * ### Remarks
@@ -25,6 +27,8 @@ import { TapGesture } from './tapGesture';
2527 */
2628export const GestureObjects = {
2729 /**
30+ * @deprecated `Gesture.Tap()` is deprecated and will be removed in the future. Please use `useTapGesture` instead.
31+ *
2832 * A discrete gesture that recognizes one or many taps.
2933 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture
3034 */
@@ -33,6 +37,8 @@ export const GestureObjects = {
3337 } ,
3438
3539 /**
40+ * @deprecated `Gesture.Pan()` is deprecated and will be removed in the future. Please use `usePanGesture` instead.
41+ *
3642 * A continuous gesture that can recognize a panning (dragging) gesture and track its movement.
3743 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture
3844 */
@@ -41,6 +47,8 @@ export const GestureObjects = {
4147 } ,
4248
4349 /**
50+ * @deprecated `Gesture.Pinch()` is deprecated and will be removed in the future. Please use `usePinchGesture` instead.
51+ *
4452 * 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.
4553 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pinch-gesture
4654 */
@@ -49,6 +57,8 @@ export const GestureObjects = {
4957 } ,
5058
5159 /**
60+ * @deprecated `Gesture.Rotation()` is deprecated and will be removed in the future. Please use `useRotationGesture` instead.
61+ *
5262 * A continuous gesture that can recognize rotation and track its movement.
5363 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/rotation-gesture
5464 */
@@ -57,6 +67,8 @@ export const GestureObjects = {
5767 } ,
5868
5969 /**
70+ * @deprecated `Gesture.Fling()` is deprecated and will be removed in the future. Please use `useFlingGesture` instead.
71+ *
6072 * A discrete gesture that activates when the movement is sufficiently fast.
6173 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture
6274 */
@@ -65,6 +77,8 @@ export const GestureObjects = {
6577 } ,
6678
6779 /**
80+ * @deprecated `Gesture.LongPress()` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead.
81+ *
6882 * A discrete gesture that activates when the corresponding view is pressed for a sufficiently long time.
6983 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture
7084 */
@@ -73,7 +87,7 @@ export const GestureObjects = {
7387 } ,
7488
7589 /**
76- * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
90+ * @deprecated `Gesture. ForceTouch()` is deprecated and will be removed in the future.
7791 *
7892 * #### iOS only
7993 * A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices.
@@ -84,6 +98,8 @@ export const GestureObjects = {
8498 } ,
8599
86100 /**
101+ * @deprecated `Gesture.Native()` is deprecated and will be removed in the future. Please use `useNativeGesture` instead.
102+ *
87103 * A gesture that allows other touch handling components to participate in RNGH's gesture system.
88104 * When used, the other component should be the direct child of a `GestureDetector`.
89105 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/native-gesture
@@ -93,6 +109,8 @@ export const GestureObjects = {
93109 } ,
94110
95111 /**
112+ * @deprecated `Gesture.Manual()` is deprecated and will be removed in the future. Please use `useManualGesture` instead.
113+ *
96114 * A plain gesture that has no specific activation criteria nor event data set.
97115 * Its state has to be controlled manually using a state manager.
98116 * It will not fail when all the pointers are lifted from the screen.
@@ -103,6 +121,8 @@ export const GestureObjects = {
103121 } ,
104122
105123 /**
124+ * @deprecated `Gesture.Hover()` is deprecated and will be removed in the future. Please use `useHoverGesture` instead.
125+ *
106126 * A continuous gesture that can recognize hovering above the view it's attached to.
107127 * The hover effect may be activated by moving a mouse or a stylus over the view.
108128 *
@@ -113,6 +133,8 @@ export const GestureObjects = {
113133 } ,
114134
115135 /**
136+ * @deprecated `Gesture.Race()` is deprecated and will be removed in the future. Please use `useCompetingGestures` instead.
137+ *
116138 * Builds a composed gesture consisting of gestures provided as parameters.
117139 * The first one that becomes active cancels the rest of gestures.
118140 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#race
@@ -122,6 +144,8 @@ export const GestureObjects = {
122144 } ,
123145
124146 /**
147+ * @deprecated `Gesture.Simultaneous()` is deprecated and will be removed in the future. Please use `useSimultaneousGestures` instead.
148+ *
125149 * Builds a composed gesture that allows all base gestures to run simultaneously.
126150 * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#simultaneous
127151 */
@@ -130,6 +154,8 @@ export const GestureObjects = {
130154 } ,
131155
132156 /**
157+ * @deprecated `Gesture.Exclusive()` is deprecated and will be removed in the future. Please use `useExclusiveGestures` instead.
158+ *
133159 * Builds a composed gesture where only one of the provided gestures can become active.
134160 * Priority is decided through the order of gestures: the first one has higher priority
135161 * than the second one, second one has higher priority than the third one, and so on.
0 commit comments