react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
15 lines (11 loc) • 412 B
text/typescript
import type { AnyGesture } from '../../types';
import { ComposedGestureName } from '../../types';
import { useComposedGesture } from './useComposedGesture';
export function useExclusiveGestures(...gestures: AnyGesture[]) {
const composedGesture = useComposedGesture(
ComposedGestureName.Exclusive,
...gestures
);
composedGesture.type = ComposedGestureName.Exclusive;
return composedGesture;
}