react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
15 lines (14 loc) • 401 B
JavaScript
;
export const ButtonEventName = {
Press: 'gh:buttonPress',
PressIn: 'gh:buttonPressIn',
PressOut: 'gh:buttonPressOut',
LongPress: 'gh:buttonLongPress',
InteractionFinished: 'gh:buttonInteractionFinished'
};
export function dispatchButtonEvent(view, name, event) {
view?.dispatchEvent(new CustomEvent(name, {
detail: event
}));
}
//# sourceMappingURL=ButtonEvents.js.map