UNPKG

@multiface.js/react-native

Version:

React Native specific components and utilities for multimodal UI

28 lines (27 loc) 844 B
import React from 'react'; export interface GestureData { type: 'swipe' | 'pinch' | 'tap' | 'long_press' | 'shake'; direction?: 'up' | 'down' | 'left' | 'right' | 'in' | 'out'; velocity?: number; distance?: number; duration?: number; coordinates?: { x: number; y: number; }; } export interface RNGestureHandlerProps { onGesture: (gesture: GestureData) => void; children: React.ReactNode; enableSwipe?: boolean; enablePinch?: boolean; enableTap?: boolean; enableLongPress?: boolean; swipeThreshold?: number; longPressDelay?: number; style?: any; } export declare const RNGestureHandler: React.FC<RNGestureHandlerProps>; export declare const useGestureWithFusion: (onFusedOutput: (fusedInput: any) => void) => { handleGesture: (gesture: GestureData) => void; };