mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
Fix TypeScript 1.8 compile errors. Get rid of "ui" imports.
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import application = require("application");
|
||||
import navPageModule = require("../nav-page");
|
||||
import * as application from "application";
|
||||
import {NavPage} from "../nav-page";
|
||||
import {Page} from "ui/page";
|
||||
import * as trace from "trace";
|
||||
|
||||
import trace = require("trace");
|
||||
trace.enable();
|
||||
trace.setCategories(trace.categories.concat(
|
||||
trace.categories.NativeLifecycle,
|
||||
@ -11,18 +12,14 @@ trace.setCategories(trace.categories.concat(
|
||||
));
|
||||
|
||||
application.mainEntry = {
|
||||
create: function () {
|
||||
return new navPageModule.NavPage({
|
||||
index: 0,
|
||||
backStackVisible: true,
|
||||
clearHistory: false,
|
||||
animated: true,
|
||||
transition: 0,
|
||||
curve: 0,
|
||||
duration: 0,
|
||||
});
|
||||
}
|
||||
//backstackVisible: false,
|
||||
//clearHistory: true
|
||||
create: () => new NavPage({
|
||||
index: 0,
|
||||
backStackVisible: true,
|
||||
clearHistory: false,
|
||||
animated: true,
|
||||
transition: 0,
|
||||
curve: 0,
|
||||
duration: 0,
|
||||
})
|
||||
};
|
||||
application.start();
|
||||
|
@ -1,4 +1,5 @@
|
||||
import {Page, ListPicker} from "ui";
|
||||
import {Page} from "ui/page";
|
||||
import {ListPicker} from "ui/list-picker";
|
||||
|
||||
var closeCallback: Function;
|
||||
var page: Page;
|
||||
|
Reference in New Issue
Block a user