From 704b5dcb7041d916048dc239929716626aed4fde Mon Sep 17 00:00:00 2001 From: Joseph Bradshaw Date: Thu, 19 May 2022 18:07:00 +0200 Subject: [PATCH] Update index.d.ts Just to give slightly nicer intellisense for typescript users on the possible gesture names --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 033bab1..5f94d35 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,7 +7,7 @@ declare module 'react-native-swipe-gestures' { export interface GestureRecognizerProps extends ViewProps { config?: GestureRecognizerConfig; - onSwipe?(gestureName: string, gestureState: PanResponderGestureState): void; + onSwipe?(gestureName: 'SWIPE_UP'|'SWIPE_DOWN'|'SWIPE_LEFT'|'SWIPE_RIGHT', gestureState: PanResponderGestureState): void; onSwipeUp?(gestureState: PanResponderGestureState): void; onSwipeDown?(gestureState: PanResponderGestureState): void; onSwipeLeft?(gestureState: PanResponderGestureState): void;