Skip to content

Commit ad8ef64

Browse files
committed
native detector action type
1 parent 56b93d3 commit ad8ef64

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/react-native-gesture-handler/src/ActionType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const ActionType = {
33
NATIVE_ANIMATED_EVENT: 2,
44
JS_FUNCTION_OLD_API: 3,
55
JS_FUNCTION_NEW_API: 4,
6+
NATIVE_DETECTOR: 5,
67
} as const;
78

89
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a value

packages/react-native-gesture-handler/src/web/GestureHandlerDetector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ const GestureHandlerDetector = (props: GestureHandlerDetectorProps) => {
5151
RNGestureHandlerModuleWeb.attachGestureHandler(
5252
tag,
5353
viewRef.current,
54-
ActionType.NATIVE_ANIMATED_EVENT, // TODO: find proper ActionType
54+
ActionType.NATIVE_DETECTOR,
5555
propsRef
5656
);
5757
});
5858
};
59+
5960
return <View ref={viewRef}>{children}</View>;
6061
};
6162

0 commit comments

Comments
 (0)