UNPKG

react-native-gesture-handler

Version:

Experimental implementation of a new declarative API for gesture handling in react-native

10 lines (8 loc) 280 B
export const Directions = { RIGHT: 1, LEFT: 2, UP: 4, DOWN: 8, } 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 Directions = typeof Directions[keyof typeof Directions];