chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 14:25:11 -07:00
parent 94cf5c4706
commit 6336eac4b5
477 changed files with 59087 additions and 74961 deletions

View File

@@ -1,19 +1,15 @@
import { StackLayoutBase, orientationProperty } from "./stack-layout-common";
import { StackLayoutBase, orientationProperty } from './stack-layout-common';
export * from "./stack-layout-common";
export * from './stack-layout-common';
export class StackLayout extends StackLayoutBase {
nativeViewProtected: org.nativescript.widgets.StackLayout;
nativeViewProtected: org.nativescript.widgets.StackLayout;
public createNativeView() {
return new org.nativescript.widgets.StackLayout(this._context);
}
public createNativeView() {
return new org.nativescript.widgets.StackLayout(this._context);
}
[orientationProperty.setNative](value: "horizontal" | "vertical") {
this.nativeViewProtected.setOrientation(
value === "vertical"
? org.nativescript.widgets.Orientation.vertical
: org.nativescript.widgets.Orientation.horizontal
);
}
[orientationProperty.setNative](value: 'horizontal' | 'vertical') {
this.nativeViewProtected.setOrientation(value === 'vertical' ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horizontal);
}
}