Skip to content

Commit c233d0b

Browse files
committed
Deprecate events and payloads
1 parent b66f96f commit c233d0b

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/react-native-gesture-handler/src/handlers/GestureHandlerEventPayload.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export type FlingGestureHandlerEventPayload = {
77
absoluteY: number;
88
};
99

10+
/**
11+
* @deprecated ForceTouch gesture is deprecated and will be removed in the future.
12+
*/
1013
export type ForceTouchGestureHandlerEventPayload = {
1114
x: number;
1215
y: number;

packages/react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ export type TapGestureHandlerGestureEvent =
4646
export type TapGestureHandlerStateChangeEvent =
4747
HandlerStateChangeEvent<TapGestureHandlerEventPayload>;
4848

49+
/**
50+
* @deprecated ForceTouchGestureHandlerś is deprecated and will be removed in the future.
51+
*/
4952
export type ForceTouchGestureHandlerGestureEvent =
5053
GestureEvent<ForceTouchGestureHandlerEventPayload>;
54+
/**
55+
* @deprecated ForceTouchGestureHandlerś is deprecated and will be removed in the future.
56+
*/
5157
export type ForceTouchGestureHandlerStateChangeEvent =
5258
HandlerStateChangeEvent<ForceTouchGestureHandlerEventPayload>;
5359

@@ -84,6 +90,9 @@ export type PanGestureHandlerProperties = PanGestureHandlerProps;
8490
export type PinchGestureHandlerProperties = PinchGestureHandlerProps;
8591
export type RotationGestureHandlerProperties = RotationGestureHandlerProps;
8692
export type FlingGestureHandlerProperties = FlingGestureHandlerProps;
93+
/**
94+
* @deprecated ForceTouch gesture is deprecated and will be removed in the future.
95+
*/
8796
export type ForceTouchGestureHandlerProperties = ForceTouchGestureHandlerProps;
8897
// Button props
8998
export type RawButtonProperties = RawButtonProps;

packages/react-native-gesture-handler/src/handlers/gestures/forceTouchGesture.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,7 @@ export class ForceTouchGesture extends ContinousBaseGesture<
8989
}
9090
}
9191

92+
/**
93+
* @deprecated ForceTouch gesture is deprecated and will be removed in the future.
94+
*/
9295
export type ForceTouchGestureType = InstanceType<typeof ForceTouchGesture>;

0 commit comments

Comments
 (0)