react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
14 lines (11 loc) • 335 B
text/typescript
// TODO use State from RNModule
export const State = {
UNDETERMINED: 0,
FAILED: 1,
BEGAN: 2,
CANCELLED: 3,
ACTIVE: 4,
END: 5,
} 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 State = (typeof State)[keyof typeof State];