UNPKG

react-native-gesture-handler

Version:

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

12 lines (11 loc) 502 B
import { unregisterHandler } from '../../handlersRegistry'; import RNGestureHandlerModule from '../../../RNGestureHandlerModule'; import { scheduleFlushOperations } from '../../utils'; export function dropHandlers(preparedGesture) { for (const handler of preparedGesture.attachedGestures) { RNGestureHandlerModule.dropGestureHandler(handler.handlerTag); unregisterHandler(handler.handlerTag, handler.config.testId); } scheduleFlushOperations(); } //# sourceMappingURL=dropHandlers.js.map