chore: Enums > CoreTypes

Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
This commit is contained in:
Nathan Walker
2021-03-15 22:05:47 -07:00
parent e62acba792
commit 21da31562c
106 changed files with 1110 additions and 1128 deletions

View File

@@ -4,7 +4,7 @@ import { Trace } from '@nativescript/core';
import { Color } from '@nativescript/core/color';
import { NavigationEntry, NavigationTransition } from '@nativescript/core/ui/frame';
import { Page } from '@nativescript/core/ui/page';
import { Enums } from '@nativescript/core';
import { CoreTypes } from '@nativescript/core';
import { CustomTransition } from './custom-transition';
function _testTransition(navigationTransition: NavigationTransition) {
@@ -51,7 +51,7 @@ export function test_Transitions() {
// Built-in transitions
transitions.forEach((name) => {
_testTransition({ name, duration: 20, curve: Enums.AnimationCurve.easeIn });
_testTransition({ name, duration: 20, curve: CoreTypes.AnimationCurve.easeIn });
});
// helper.navigateWithEntry({ create: mainPageFactory, clearHistory: true, animated: false });