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,25 +1,22 @@
import { StackLayout as StackLayoutDefinition, Orientation } from ".";
import { LayoutBase } from "../layout-base";
import { CSSType } from "../../core/view";
import { Property, makeParser, makeValidator } from "../../core/properties";
import { isIOS } from "../../../platform";
import { StackLayout as StackLayoutDefinition, Orientation } from '.';
import { LayoutBase } from '../layout-base';
import { CSSType } from '../../core/view';
import { Property, makeParser, makeValidator } from '../../core/properties';
import { isIOS } from '../../../platform';
@CSSType("StackLayout")
export class StackLayoutBase extends LayoutBase
implements StackLayoutDefinition {
public orientation: Orientation;
@CSSType('StackLayout')
export class StackLayoutBase extends LayoutBase implements StackLayoutDefinition {
public orientation: Orientation;
}
StackLayoutBase.prototype.recycleNativeView = "auto";
StackLayoutBase.prototype.recycleNativeView = 'auto';
const converter = makeParser<Orientation>(
makeValidator("horizontal", "vertical")
);
const converter = makeParser<Orientation>(makeValidator('horizontal', 'vertical'));
export const orientationProperty = new Property<StackLayoutBase, Orientation>({
name: "orientation",
defaultValue: "vertical",
affectsLayout: isIOS,
valueConverter: converter,
name: 'orientation',
defaultValue: 'vertical',
affectsLayout: isIOS,
valueConverter: converter,
});
orientationProperty.register(StackLayoutBase);