mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
24 lines
573 B
TypeScript
24 lines
573 B
TypeScript
import * as application from "application";
|
|
import {NavPage} from "../nav-page";
|
|
import * as trace from "trace";
|
|
trace.enable();
|
|
trace.setCategories(trace.categories.concat(
|
|
trace.categories.NativeLifecycle,
|
|
trace.categories.Navigation,
|
|
//trace.categories.Animation,
|
|
trace.categories.Transition
|
|
));
|
|
|
|
application.mainEntry = {
|
|
create: () => new NavPage({
|
|
index: 0,
|
|
backStackVisible: true,
|
|
clearHistory: false,
|
|
animated: true,
|
|
transition: 0,
|
|
curve: 0,
|
|
duration: 0,
|
|
})
|
|
};
|
|
application.start();
|