react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
20 lines (19 loc) • 567 B
JavaScript
import NodeManager from '../../web/tools/NodeManager';
export const GestureStateManager = {
create(handlerTag) {
return {
begin: () => {
NodeManager.getHandler(handlerTag).begin();
},
activate: () => {
NodeManager.getHandler(handlerTag).activate(true);
},
fail: () => {
NodeManager.getHandler(handlerTag).fail();
},
end: () => {
NodeManager.getHandler(handlerTag).end();
},
};
},
};