mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +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;
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
import definition = require("controls-page");
|
||||
import {View, Page, topmost as topmostFrame, NavigationTransition, Orientation, AnimationCurve, StackLayout, Button, Label, TextField, Switch, ListPicker, Slider} from "ui";
|
||||
import {View} from "ui/core/view";
|
||||
import {Page} from "ui/page";
|
||||
import {topmost as topmostFrame, NavigationTransition} from "ui/frame";
|
||||
import {Orientation, AnimationCurve} from "ui/enums";
|
||||
import {StackLayout} from "ui/layouts/stack-layout";
|
||||
import {Button} from "ui/button";
|
||||
import {Label} from "ui/label";
|
||||
import {TextField} from "ui/text-field";
|
||||
import {Switch} from "ui/switch";
|
||||
import {ListPicker} from "ui/list-picker";
|
||||
import {Slider} from "ui/slider";
|
||||
import {Color} from "color";
|
||||
import platform = require("platform");
|
||||
import * as platform from "platform";
|
||||
|
||||
var availableTransitions = ["default", "custom", "flip", "flipRight", "flipLeft", "slide", "slideLeft", "slideRight", "slideTop", "slideBottom", "fade"];
|
||||
if (platform.device.os === platform.platformNames.ios) {
|
||||
|
||||
Reference in New Issue
Block a user