File tree Expand file tree Collapse file tree 5 files changed +28
-1
lines changed
docs-gesture-handler/docs/gestures
react-native-gesture-handler/src/handlers Expand file tree Collapse file tree 5 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ sidebar_label: Force touch gesture
5
5
sidebar_position : 10
6
6
---
7
7
8
+ ::: warning
9
+ ForceTouch gesture is depracted and will be removed in the future version of Gesture Handler.
10
+ :::
11
+
8
12
import BaseEventData from './\_ shared/base-gesture-event-data.md';
9
13
import BaseEventConfig from './\_ shared/base-gesture-config.md';
10
14
import BaseContinuousEventConfig from './\_ shared/base-continuous-gesture-config.md';
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ export type FlingGestureHandlerEventPayload = {
7
7
absoluteY : number ;
8
8
} ;
9
9
10
+ /**
11
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
12
+ */
10
13
export type ForceTouchGestureHandlerEventPayload = {
11
14
x : number ;
12
15
y : number ;
Original file line number Diff line number Diff line change @@ -46,8 +46,14 @@ export type TapGestureHandlerGestureEvent =
46
46
export type TapGestureHandlerStateChangeEvent =
47
47
HandlerStateChangeEvent < TapGestureHandlerEventPayload > ;
48
48
49
+ /**
50
+ * @deprecated ForceTouchGestureHandler is deprecated and will be removed in the future.
51
+ */
49
52
export type ForceTouchGestureHandlerGestureEvent =
50
53
GestureEvent < ForceTouchGestureHandlerEventPayload > ;
54
+ /**
55
+ * @deprecated ForceTouchGestureHandler is deprecated and will be removed in the future.
56
+ */
51
57
export type ForceTouchGestureHandlerStateChangeEvent =
52
58
HandlerStateChangeEvent < ForceTouchGestureHandlerEventPayload > ;
53
59
@@ -84,6 +90,9 @@ export type PanGestureHandlerProperties = PanGestureHandlerProps;
84
90
export type PinchGestureHandlerProperties = PinchGestureHandlerProps ;
85
91
export type RotationGestureHandlerProperties = RotationGestureHandlerProps ;
86
92
export type FlingGestureHandlerProperties = FlingGestureHandlerProps ;
93
+ /**
94
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
95
+ */
87
96
export type ForceTouchGestureHandlerProperties = ForceTouchGestureHandlerProps ;
88
97
// Button props
89
98
export type RawButtonProperties = RawButtonProps ;
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import { ForceTouchGestureConfig } from '../ForceTouchGestureHandler';
3
3
import type { ForceTouchGestureHandlerEventPayload } from '../GestureHandlerEventPayload' ;
4
4
import { GestureUpdateEvent } from '../gestureHandlerCommon' ;
5
5
6
+ /**
7
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
8
+ */
6
9
export type ForceTouchGestureChangeEventPayload = {
7
10
forceChange : number ;
8
11
} ;
@@ -26,6 +29,9 @@ function changeEventCalculator(
26
29
return { ...current , ...changePayload } ;
27
30
}
28
31
32
+ /**
33
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
34
+ */
29
35
export class ForceTouchGesture extends ContinousBaseGesture <
30
36
ForceTouchGestureHandlerEventPayload ,
31
37
ForceTouchGestureChangeEventPayload
@@ -83,4 +89,7 @@ export class ForceTouchGesture extends ContinousBaseGesture<
83
89
}
84
90
}
85
91
92
+ /**
93
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
94
+ */
86
95
export type ForceTouchGestureType = InstanceType < typeof ForceTouchGesture > ;
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ export const GestureObjects = {
73
73
} ,
74
74
75
75
/**
76
- * #### iOS only
76
+ * @deprecated ForceTouch gesture is deprecated and will be removed in the future.
77
+ *
78
+ * #### iOS only
77
79
* A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices.
78
80
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/force-touch-gesture
79
81
*/
You can’t perform that action at this time.
0 commit comments