UNPKG

react-native-gesture-handler

Version:

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

20 lines (19 loc) 749 B
import React from 'react'; import { GestureType, HandlerCallbacks } from './gesture'; import { SharedValue } from './reanimatedWrapper'; import { UserSelect } from '../gestureHandlerCommon'; import { ComposedGesture } from './gestureComposition'; export declare type GestureConfigReference = { config: GestureType[]; animatedEventHandler: unknown; animatedHandlers: SharedValue<HandlerCallbacks<Record<string, unknown>>[] | null> | null; firstExecution: boolean; useReanimatedHook: boolean; }; interface GestureDetectorProps { gesture: ComposedGesture | GestureType; userSelect?: UserSelect; children?: React.ReactNode; } export declare const GestureDetector: (props: GestureDetectorProps) => JSX.Element; export {};