File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { registerHandler } from '../../handlersRegistry';
1111import { filterConfig , scheduleFlushOperations } from '../../utils' ;
1212import type { GestureType , HandlerCallbacks } from '../gesture' ;
1313import type { ComposedGesture } from '../gestureComposition' ;
14- import type AttachedGestureState from './types' ;
14+ import type { AttachedGestureState } from './types' ;
1515import {
1616 ALLOWED_PROPS ,
1717 checkGestureCallbacksForWorklets ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { MountRegistry } from '../../../mountRegistry';
22import RNGestureHandlerModule from '../../../RNGestureHandlerModule' ;
33import { unregisterHandler } from '../../handlersRegistry' ;
44import { scheduleFlushOperations } from '../../utils' ;
5- import type AttachedGestureState from './types' ;
5+ import type { AttachedGestureState } from './types' ;
66
77export function dropHandlers ( preparedGesture : AttachedGestureState ) {
88 for ( const handler of preparedGesture . attachedGestures ) {
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import type { ComposedGesture } from '../gestureComposition';
99import { attachHandlers } from './attachHandlers' ;
1010import { dropHandlers } from './dropHandlers' ;
1111import { needsToReattach } from './needsToReattach' ;
12- import type AttachedGestureState from './types' ;
13- import type { GestureDetectorState } from './types' ;
12+ import type { AttachedGestureState , GestureDetectorState } from './types' ;
1413import { useAnimatedGesture } from './useAnimatedGesture' ;
1514import { useDetectorUpdater } from './useDetectorUpdater' ;
1615import { useMountReactions } from './useMountReactions' ;
Original file line number Diff line number Diff line change 11import type { GestureType } from '../gesture' ;
2- import type AttachedGestureState from './types' ;
2+ import type { AttachedGestureState } from './types' ;
33
44// Checks whether the gesture should be reattached to the view, this will happen when:
55// - The number of gestures in the preparedGesture is different than the number of gestures in the gesture
Original file line number Diff line number Diff line change 11import type { SharedValue } from '../../../v3/types' ;
22import type { GestureType , HandlerCallbacks } from '../gesture' ;
33
4- export default interface AttachedGestureState {
4+ export interface AttachedGestureState {
55 // Array of gestures that should be attached to the view under that gesture detector
66 attachedGestures : GestureType [ ] ;
77 // Event handler for the gesture, returned by `useEvent` from Reanimated
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { registerHandler } from '../../handlersRegistry';
44import { filterConfig , scheduleFlushOperations } from '../../utils' ;
55import type { GestureType , HandlerCallbacks } from '../gesture' ;
66import type { ComposedGesture } from '../gestureComposition' ;
7- import type AttachedGestureState from './types' ;
7+ import type { AttachedGestureState } from './types' ;
88import {
99 ALLOWED_PROPS ,
1010 checkGestureCallbacksForWorklets ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { CALLBACK_TYPE } from '../gesture';
1111import type { GestureStateManagerType } from '../gestureStateManager' ;
1212import { GestureStateManager } from '../gestureStateManager' ;
1313import { Reanimated } from '../reanimatedWrapper' ;
14- import type AttachedGestureState from './types' ;
14+ import type { AttachedGestureState } from './types' ;
1515
1616function getHandler (
1717 type : CALLBACK_TYPE ,
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ import type { ComposedGesture } from '../gestureComposition';
88import { attachHandlers } from './attachHandlers' ;
99import { dropHandlers } from './dropHandlers' ;
1010import { needsToReattach } from './needsToReattach' ;
11- import type AttachedGestureState from './types' ;
12- import type { GestureDetectorState } from './types' ;
11+ import type { AttachedGestureState , GestureDetectorState } from './types' ;
1312import { updateHandlers } from './updateHandlers' ;
1413import { useForceRender , validateDetectorChildren } from './utils' ;
1514
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useEffect } from 'react';
33import { MountRegistry } from '../../../mountRegistry' ;
44import { transformIntoHandlerTags } from '../../utils' ;
55import type { GestureRef } from '../gesture' ;
6- import type AttachedGestureState from './types' ;
6+ import type { AttachedGestureState } from './types' ;
77
88function shouldUpdateDetector (
99 relation : GestureRef [ ] | undefined ,
You can’t perform that action at this time.
0 commit comments