UNPKG

abb-core

Version:

Application Build Butler Core

29 lines (28 loc) 1.39 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ABBContainerAndroid, ABBContainerIOS, ABBContainerWeb } from "../../index"; import { Platform } from 'react-native'; // TODO: Im vollbild modus müssen Fehler ebenfalls unter header und übern content (fixed quasi) erscheinen. // TODO: Header muss weiter sichtbar bleiben, ob vollbild oder nicht.. ggf. können dann auch die fehler unterm header bleiben // TODO: Klickevents nur weitergeben an die View Componenten var ABBContainer = /** @class */ (function (_super) { tslib_1.__extends(ABBContainer, _super); function ABBContainer(props) { var _this = _super.call(this, props) || this; _this.state = { style: props.style }; return _this; } ABBContainer.prototype.render = function () { return (React.createElement(React.Fragment, null, Platform.OS === "android" && React.createElement(ABBContainerAndroid, { style: this.state.style }, this.props.children), Platform.OS === "ios" && React.createElement(ABBContainerIOS, { style: this.state.style }, this.props.children), Platform.OS === "web" && React.createElement(ABBContainerWeb, { style: this.state.style }, this.props.children))); }; return ABBContainer; }(React.Component)); export { ABBContainer };