UNPKG

688 BTypeScriptView Raw
1import * as React from 'react';
2import { BaseGestureHandlerProps } from './gestureHandlerCommon';
3type CreateHandlerArgs<HandlerPropsT extends Record<string, unknown>> = Readonly<{
4 name: string;
5 allowedProps: Readonly<Extract<keyof HandlerPropsT, string>[]>;
6 config: Readonly<Record<string, unknown>>;
7 transformProps?: (props: HandlerPropsT) => HandlerPropsT;
8 customNativeProps?: Readonly<string[]>;
9}>;
10export default function createHandler<T extends BaseGestureHandlerProps<U>, U extends Record<string, unknown>>({ name, allowedProps, config, transformProps, customNativeProps, }: CreateHandlerArgs<T>): React.ComponentType<T & React.RefAttributes<any>>;
11export {};