Skip to content

Commit 7c00105

Browse files
committed
removed forAnimated
1 parent 38b240a commit 7c00105

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

packages/react-native-gesture-handler/src/web/handlers/GestureHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ export default abstract class GestureHandler implements IGestureHandler {
6262
protected init(
6363
viewRef: number,
6464
propsRef: React.RefObject<PropsRef>,
65-
actionType: ActionType,
66-
forAnimated: boolean
65+
actionType: ActionType
6766
) {
6867
this.propsRef = propsRef;
6968
this.viewRef = viewRef;
7069
this.actionType = actionType;
7170
this.state = State.UNDETERMINED;
72-
this.forAnimated = forAnimated;
7371

7472
this.delegate.init(viewRef, this);
7573
}

packages/react-native-gesture-handler/src/web/handlers/LongPressGestureHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ export default class LongPressGestureHandler extends GestureHandler {
2525
public init(
2626
ref: number,
2727
propsRef: React.RefObject<PropsRef>,
28-
actionType: ActionType,
29-
forAnimated: boolean
28+
actionType: ActionType
3029
) {
3130
if (this.config.enableContextMenu === undefined) {
3231
this.config.enableContextMenu = false;
3332
}
3433

35-
super.init(ref, propsRef, actionType, forAnimated);
34+
super.init(ref, propsRef, actionType);
3635
}
3736

3837
protected transformNativeEvent() {

packages/react-native-gesture-handler/src/web/handlers/NativeViewGestureHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export default class NativeViewGestureHandler extends GestureHandler {
2020
public init(
2121
ref: number,
2222
propsRef: React.RefObject<PropsRef>,
23-
actionType: ActionType,
24-
forAnimated: boolean
23+
actionType: ActionType
2524
): void {
26-
super.init(ref, propsRef, actionType, forAnimated);
25+
super.init(ref, propsRef, actionType);
2726

2827
this.shouldCancelWhenOutside = true;
2928

packages/react-native-gesture-handler/src/web/handlers/PinchGestureHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ export default class PinchGestureHandler extends GestureHandler {
5252
public init(
5353
ref: number,
5454
propsRef: React.RefObject<PropsRef>,
55-
actionType: ActionType,
56-
forAnimated: boolean
55+
actionType: ActionType
5756
) {
58-
super.init(ref, propsRef, actionType, forAnimated);
57+
super.init(ref, propsRef, actionType);
5958

6059
this.shouldCancelWhenOutside = false;
6160
}

packages/react-native-gesture-handler/src/web/handlers/RotationGestureHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ export default class RotationGestureHandler extends GestureHandler {
4848
public init(
4949
ref: number,
5050
propsRef: React.RefObject<PropsRef>,
51-
actionType: ActionType,
52-
forAnimated: boolean
51+
actionType: ActionType
5352
): void {
54-
super.init(ref, propsRef, actionType, forAnimated);
53+
super.init(ref, propsRef, actionType);
5554

5655
this.shouldCancelWhenOutside = false;
5756
}

0 commit comments

Comments
 (0)