react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
14 lines (13 loc) • 605 B
JavaScript
import { unregisterHandler } from '../../handlersRegistry';
import RNGestureHandlerModule from '../../../RNGestureHandlerModule';
import { scheduleFlushOperations } from '../../utils';
import { MountRegistry } from '../../../mountRegistry';
export function dropHandlers(preparedGesture) {
for (const handler of preparedGesture.attachedGestures) {
RNGestureHandlerModule.dropGestureHandler(handler.handlerTag);
unregisterHandler(handler.handlerTag, handler.config.testId);
MountRegistry.gestureWillUnmount(handler);
}
scheduleFlushOperations();
}
//# sourceMappingURL=dropHandlers.js.map