react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
12 lines (10 loc) • 355 B
text/typescript
export const TouchEventType = {
UNDETERMINED: 0,
TOUCHES_DOWN: 1,
TOUCHES_MOVE: 2,
TOUCHES_UP: 3,
TOUCHES_CANCELLED: 4,
} as const;
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a value
export type TouchEventType =
(typeof TouchEventType)[keyof typeof TouchEventType];