//------------------------------------------------------------------------------ // // This code was auto generated. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ import pageContextPatch from "@smartface/contx/lib/smartface/pageContextPatch"; import Page = require("@smartface/native/ui/page"); import type View = require("@smartface/native/ui/view"); import { ComponentStyleContext } from "../src/ComponentStyleContext"; import Button = require("@smartface/native/ui/button"); import { StyleContextComponentWithDispatch } from "../src/"; import { styleablePageMixin } from "../src//styleablePageMixin"; import { styleableComponentMixin, styleableContainerComponentMixin } from "../src/styleableComponentMixin"; import { extendOfViewGroup } from "../src/extendOfViewGroup"; import StatusBar = require("@smartface/native/application/statusbar"); import HeaderBar = require("@smartface/native/ui/headerbar"); import FlexLayout = require("@smartface/native/ui/flexlayout"); $Flex = styleableContainerComponentMixin(FlexLayout) // if(extendOfViewGroup(FlexLayout)) { // FlexLayout.prototype.addChild // styleableContainerComponentMixin(FlexLayout) // } else { styleableComponentMixin(FlexLayout); // } // const flex = new Flex(); // flex.addChild() // cannot catch the type is container or not with class $$BtnNext // therefore a variable is used const $$BtnNext = class extends Button { static $$styleContext: ComponentStyleContext = { classNames: ".sf-button", defaultClassNames: ".default_common .default_button", userProps: { flexProps: { alignSelf: "AUTO", positionType: "RELATIVE" }, width: null, } }; constructor() { super({ text: "Next Page" }); } } interface Children { btnNext: StyleContextComponentWithDispatch