mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: circular deps part 14
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { PageTransition, SharedTransition, SharedTransitionAnimationType, SharedTransitionHelper, Transition, Utils } from '@nativescript/core';
|
||||
import { CORE_ANIMATION_DEFAULTS } from '@nativescript/core/utils';
|
||||
|
||||
export class CustomTransition extends Transition {
|
||||
constructor(duration: number, curve: any) {
|
||||
@@ -32,7 +31,7 @@ export class CustomTransition extends Transition {
|
||||
},
|
||||
(finished) => {
|
||||
transitionContext.completeTransition(finished);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -90,7 +89,7 @@ class PageTransitionController extends NSObject implements UIViewControllerAnima
|
||||
}
|
||||
}
|
||||
}
|
||||
return CORE_ANIMATION_DEFAULTS.duration;
|
||||
return Utils.CORE_ANIMATION_DEFAULTS.duration;
|
||||
}
|
||||
|
||||
animateTransition(transitionContext: UIViewControllerContextTransitioning): void {
|
||||
|
||||
Reference in New Issue
Block a user