Skip to content

Commit 2b7a1a0

Browse files
authored
[Web] Use correct config field for Reanimated flag (#3835)
## Description Changes the config field mapped to `forReanimated` on web GestureHandler. `shouldUseReanimated` doesn't exist anymore, and `shouldUseReanimatedDetector` is filtered out from the config. ## Test plan Verify that `forReanimated` is set correctly
1 parent 12ffcc4 commit 2b7a1a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,8 @@ export default abstract class GestureHandler implements IGestureHandler {
746746
this.forAnimated = config.dispatchesAnimatedEvents;
747747
}
748748

749-
if (config.shouldUseReanimated !== undefined) {
750-
this.forReanimated = config.shouldUseReanimated;
749+
if (config.dispatchesReanimatedEvents !== undefined) {
750+
this.forReanimated = config.dispatchesReanimatedEvents;
751751
}
752752

753753
if (config.manualActivation !== undefined) {

packages/react-native-gesture-handler/src/web/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface Config extends Record<string, ConfigArgs> {
5252
touchAction?: TouchAction;
5353
manualActivation?: boolean;
5454
dispatchesAnimatedEvents?: false;
55-
shouldUseReanimated?: boolean;
55+
dispatchesReanimatedEvents?: boolean;
5656
needsPointerData?: false;
5757

5858
activateAfterLongPress?: number;

0 commit comments

Comments
 (0)