Skip to content

Commit c533241

Browse files
committed
Do not export AttachedGestureState as default
1 parent 9edd1f7 commit c533241

9 files changed

Lines changed: 9 additions & 11 deletions

File tree

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/attachHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { registerHandler } from '../../handlersRegistry';
1111
import { filterConfig, scheduleFlushOperations } from '../../utils';
1212
import type { GestureType, HandlerCallbacks } from '../gesture';
1313
import type { ComposedGesture } from '../gestureComposition';
14-
import type AttachedGestureState from './types';
14+
import type { AttachedGestureState } from './types';
1515
import {
1616
ALLOWED_PROPS,
1717
checkGestureCallbacksForWorklets,

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/dropHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { MountRegistry } from '../../../mountRegistry';
22
import RNGestureHandlerModule from '../../../RNGestureHandlerModule';
33
import { unregisterHandler } from '../../handlersRegistry';
44
import { scheduleFlushOperations } from '../../utils';
5-
import type AttachedGestureState from './types';
5+
import type { AttachedGestureState } from './types';
66

77
export function dropHandlers(preparedGesture: AttachedGestureState) {
88
for (const handler of preparedGesture.attachedGestures) {

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import type { ComposedGesture } from '../gestureComposition';
99
import { attachHandlers } from './attachHandlers';
1010
import { dropHandlers } from './dropHandlers';
1111
import { needsToReattach } from './needsToReattach';
12-
import type AttachedGestureState from './types';
13-
import type { GestureDetectorState } from './types';
12+
import type { AttachedGestureState, GestureDetectorState } from './types';
1413
import { useAnimatedGesture } from './useAnimatedGesture';
1514
import { useDetectorUpdater } from './useDetectorUpdater';
1615
import { useMountReactions } from './useMountReactions';

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/needsToReattach.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 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

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { SharedValue } from '../../../v3/types';
22
import 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

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/updateHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { registerHandler } from '../../handlersRegistry';
44
import { filterConfig, scheduleFlushOperations } from '../../utils';
55
import type { GestureType, HandlerCallbacks } from '../gesture';
66
import type { ComposedGesture } from '../gestureComposition';
7-
import type AttachedGestureState from './types';
7+
import type { AttachedGestureState } from './types';
88
import {
99
ALLOWED_PROPS,
1010
checkGestureCallbacksForWorklets,

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/useAnimatedGesture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { CALLBACK_TYPE } from '../gesture';
1111
import type { GestureStateManagerType } from '../gestureStateManager';
1212
import { GestureStateManager } from '../gestureStateManager';
1313
import { Reanimated } from '../reanimatedWrapper';
14-
import type AttachedGestureState from './types';
14+
import type { AttachedGestureState } from './types';
1515

1616
function getHandler(
1717
type: CALLBACK_TYPE,

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import type { ComposedGesture } from '../gestureComposition';
88
import { attachHandlers } from './attachHandlers';
99
import { dropHandlers } from './dropHandlers';
1010
import { needsToReattach } from './needsToReattach';
11-
import type AttachedGestureState from './types';
12-
import type { GestureDetectorState } from './types';
11+
import type { AttachedGestureState, GestureDetectorState } from './types';
1312
import { updateHandlers } from './updateHandlers';
1413
import { useForceRender, validateDetectorChildren } from './utils';
1514

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/useMountReactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
33
import { MountRegistry } from '../../../mountRegistry';
44
import { transformIntoHandlerTags } from '../../utils';
55
import type { GestureRef } from '../gesture';
6-
import type AttachedGestureState from './types';
6+
import type { AttachedGestureState } from './types';
77

88
function shouldUpdateDetector(
99
relation: GestureRef[] | undefined,

0 commit comments

Comments
 (0)