diff --git a/src/handlers/gestures/GestureDetector/index.tsx b/src/handlers/gestures/GestureDetector/index.tsx index 18f5ef8827..0f57b9c1ee 100644 --- a/src/handlers/gestures/GestureDetector/index.tsx +++ b/src/handlers/gestures/GestureDetector/index.tsx @@ -1,14 +1,10 @@ /* eslint-disable react/no-unused-prop-types */ import React, { useContext, useEffect, useMemo, useRef } from 'react'; +import { Platform, findNodeHandle } from 'react-native'; import { GestureType } from '../gesture'; -import { - findNodeHandle, - UserSelect, - TouchAction, -} from '../../gestureHandlerCommon'; +import { UserSelect, TouchAction } from '../../gestureHandlerCommon'; import { ComposedGesture } from '../gestureComposition'; import { isJestEnv } from '../../../utils'; -import { Platform } from 'react-native'; import GestureHandlerRootViewContext from '../../../GestureHandlerRootViewContext'; import { AttachedGestureState, GestureDetectorState } from './types'; diff --git a/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts b/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts index dbbb362ddd..0d6c0d7b2d 100644 --- a/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +++ b/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts @@ -1,6 +1,6 @@ import React, { useCallback } from 'react'; +import { findNodeHandle } from 'react-native'; import { GestureType } from '../gesture'; -import { findNodeHandle } from '../../gestureHandlerCommon'; import { ComposedGesture } from '../gestureComposition'; import { diff --git a/src/handlers/gestures/GestureDetector/useViewRefHandler.ts b/src/handlers/gestures/GestureDetector/useViewRefHandler.ts index 1c1ebee0d4..258d216ba9 100644 --- a/src/handlers/gestures/GestureDetector/useViewRefHandler.ts +++ b/src/handlers/gestures/GestureDetector/useViewRefHandler.ts @@ -1,10 +1,9 @@ -import { findNodeHandle } from '../../gestureHandlerCommon'; - import { isFabric, tagMessage } from '../../../utils'; import { getShadowNodeFromRef } from '../../../getShadowNodeFromRef'; import { GestureDetectorState } from './types'; import React, { useCallback } from 'react'; +import { findNodeHandle } from 'react-native'; declare const global: { isFormsStackingContext: (node: unknown) => boolean | null; // JSI function