UNPKG

react-use-gesture

Version:

React hook for receiving gestures https://use-gesture.netlify.app

9 lines (8 loc) 438 B
import { UsePinchConfig, Handler, EventTypes } from '../types'; /** * Pinch hook. * * @param handler - the function fired every time the pinch gesture updates * @param [config={}] - the config object including generic options and pinch options */ export declare function usePinch<K = EventTypes['pinch']>(handler: Handler<'pinch', K>, config?: UsePinchConfig | {}): (...args: any[]) => import("../types").ReactEventHandlers;