UNPKG

react-native-gesture-handler

Version:

Experimental implementation of a new declarative API for gesture handling in react-native

13 lines (9 loc) 535 B
// @ts-ignore TODO: remove once there is a .d.ts file with definitions import codegenNativeComponentUntyped from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { ViewProps, HostComponent } from 'react-native'; // eslint-disable-next-line @typescript-eslint/ban-types const codegenNativeComponent = codegenNativeComponentUntyped as <T extends {}>( name: string ) => HostComponent<T>; interface NativeProps extends ViewProps {} export default codegenNativeComponent<NativeProps>('RNGestureHandlerRootView');