UNPKG

react-native-gesture-handler

Version:

Declarative API exposing native platform touch and gesture system to React Native

13 lines 1.23 kB
import type { Insets } from 'react-native'; import type { GestureStateChangeEvent, GestureTouchEvent } from '../../handlers/gestureHandlerCommon'; import type { HoverGestureHandlerEventPayload, LongPressGestureHandlerEventPayload } from '../../handlers/GestureHandlerEventPayload'; import type { HoverGestureEvent, LongPressGestureEvent } from '../../v3'; import type { HoverGestureActiveEvent } from '../../v3/hooks'; import type { InnerPressableEvent, PressableDimensions, PressableEvent } from './PressableProps'; declare const numberAsInset: (value: number) => Insets; declare const addInsets: (a: Insets, b: Insets) => Insets; declare const isTouchWithinInset: (dimensions: PressableDimensions, inset: Insets, touch?: InnerPressableEvent) => boolean; declare const gestureToPressableEvent: (event: GestureStateChangeEvent<HoverGestureHandlerEventPayload | LongPressGestureHandlerEventPayload> | HoverGestureEvent | HoverGestureActiveEvent | LongPressGestureEvent) => PressableEvent; declare const gestureTouchToPressableEvent: (event: GestureTouchEvent) => PressableEvent; export { addInsets, gestureToPressableEvent, gestureTouchToPressableEvent, isTouchWithinInset, numberAsInset, }; //# sourceMappingURL=utils.d.ts.map