mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
21 lines
597 B
TypeScript
21 lines
597 B
TypeScript
import application = require("application");
|
|
import frameModule = require("ui/frame");
|
|
import navPageModule = require("../nav-page");
|
|
|
|
import trace = require("trace");
|
|
trace.enable();
|
|
trace.setCategories(trace.categories.concat(
|
|
trace.categories.NativeLifecycle
|
|
, trace.categories.Navigation
|
|
, trace.categories.ViewHierarchy
|
|
, trace.categories.VisualTreeEvents
|
|
));
|
|
|
|
application.onLaunch = function (context) {
|
|
var frame = new frameModule.Frame();
|
|
var pageFactory = function () {
|
|
return new navPageModule.NavPage(0);
|
|
};
|
|
frame.navigate(pageFactory);
|
|
}
|