Skip to content

Commit 9d60d9f

Browse files
author
Andrzej Antoni Kwaśniewski
committed
fix props
1 parent 8de3322 commit 9d60d9f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • packages/react-native-gesture-handler/src/v3/detectors

packages/react-native-gesture-handler/src/v3/detectors/common.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ export enum GestureDetectorType {
1111
Intercepting,
1212
}
1313

14-
export interface NativeDetectorProps<THandlerData, TConfig> {
14+
interface CommonGestureDetectorProps {
1515
children?: React.ReactNode;
16-
gesture: Gesture<THandlerData, TConfig>;
1716
userSelect?: UserSelect;
1817
touchAction?: TouchAction;
1918
enableContextMenu?: boolean;
2019
}
2120

22-
export interface InterceptingGestureDetectorProps<THandlerData, TConfig> {
23-
children?: React.ReactNode;
21+
export interface NativeDetectorProps<THandlerData, TConfig>
22+
extends CommonGestureDetectorProps {
23+
gesture: Gesture<THandlerData, TConfig>;
24+
}
25+
26+
export interface InterceptingGestureDetectorProps<THandlerData, TConfig>
27+
extends CommonGestureDetectorProps {
2428
gesture?: Gesture<THandlerData, TConfig>;
2529
}
2630

0 commit comments

Comments
 (0)