Skip to content

Commit 2afed08

Browse files
authored
fix: circular imports (#10670)
JSC fails to run a basic NativeScript add due to these imports, probably a circular.
1 parent d3d4dfe commit 2afed08

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/core/ui/gestures/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Definitions.
22
import { GestureEventData, TapGestureEventData, SwipeGestureEventData, PanGestureEventData, RotationGestureEventData, GestureEventDataWithState } from '.';
3-
import { View } from '../core/view';
3+
import type { View } from '../core/view';
44
import { EventData } from '../../data/observable';
55

66
// Types.

packages/core/ui/gestures/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Definitions.
22

33
import { GestureEventData, TapGestureEventData, GestureEventDataWithState, SwipeGestureEventData, PanGestureEventData, RotationGestureEventData, PinchGestureEventData } from '.';
4-
import { View } from '../core/view';
4+
import type { View } from '../core/view';
55
import { EventData } from '../../data/observable';
66

77
// Types.

packages/core/ui/gestures/touch-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { GestureEventData, GestureEventDataWithState, TouchGestureEventData } from '.';
66
import { Animation } from '../animation';
77
import { AnimationDefinition } from '../animation/animation-interfaces';
8-
import { View } from '../core/view';
8+
import type { View } from '../core/view';
99
import { isObject, isFunction } from '../../utils/types';
1010
import { GestureEvents, GestureStateTypes, GestureTypes } from './gestures-common';
1111

@@ -169,7 +169,7 @@ export class TouchManager {
169169
}
170170
}
171171

172-
view.on(View.disposeNativeViewEvent, (args) => {
172+
view.on('disposeNativeView', (args) => {
173173
const index = TouchManager.touchHandlers?.findIndex((handler) => handler.view === args.object);
174174
if (index > -1) {
175175
TouchManager.touchHandlers.splice(index, 1);

0 commit comments

Comments
 (0)