diff --git a/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/FlingProperties.ts b/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/FlingProperties.ts index 9dfb6b4744..0f9e0a095a 100644 --- a/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/FlingProperties.ts +++ b/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/FlingProperties.ts @@ -1,5 +1,3 @@ -import { Directions } from '../../../../Directions'; - export type FlingGestureNativeProperties = { /** * Expressed allowed direction of movement. It's possible to pass one or many @@ -15,7 +13,7 @@ export type FlingGestureNativeProperties = { * direction={Directions.DOWN} * ``` */ - direction?: Directions; + direction?: number; /** * Determine exact number of points required to handle the fling gesture. diff --git a/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/useFlingGesture.ts b/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/useFlingGesture.ts index 141a9fe26a..3f59712238 100644 --- a/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/useFlingGesture.ts +++ b/packages/react-native-gesture-handler/src/v3/hooks/gestures/fling/useFlingGesture.ts @@ -1,4 +1,3 @@ -import { Directions } from '../../../../Directions'; import { BaseDiscreteGestureConfig, ExcludeInternalConfigProps, @@ -18,10 +17,7 @@ type FlingHandlerData = { absoluteY: number; }; -type FlingGestureProperties = WithSharedValue< - FlingGestureNativeProperties, - Directions ->; +type FlingGestureProperties = WithSharedValue; type FlingGestureInternalConfig = BaseDiscreteGestureConfig< FlingHandlerData,