Skip to content

Commit 6a69cd7

Browse files
committed
added todos
1 parent 968112c commit 6a69cd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-native-gesture-handler/src/v3/NativeDetector.web.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Animated, StyleSheet } from 'react-native';
66
import GestureHandlerDetector from '../web/detectors/GestureHandlerDetector';
77
import { tagMessage } from '../utils';
88

9+
// TODO: move it to a different file
910
export interface NativeDetectorProps {
1011
children?: React.ReactNode;
1112
gesture: NativeGesture;
@@ -16,7 +17,7 @@ const AnimatedNativeDetector = Animated.createAnimatedComponent(
1617
);
1718

1819
const ReanimatedNativeDetector = Reanimated?.default.createAnimatedComponent(
19-
// TODO: fix typing, using any isn't the best practice
20+
// TODO: fix typing
2021
GestureHandlerDetector as any
2122
);
2223

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const GestureHandlerDetector = (props: GestureHandlerDetectorProps) => {
4949
RNGestureHandlerModuleWeb.attachGestureHandler(
5050
tag,
5151
viewRef.current,
52-
ActionType.NATIVE_ANIMATED_EVENT,
52+
ActionType.NATIVE_ANIMATED_EVENT, // TODO: find proper ActionType
5353
propsRef
5454
);
5555
});

0 commit comments

Comments
 (0)