File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler/src/v3/detectors Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments