const Container = (Component, hasMargin = true) => class extends React.Component { render() { return ( <View style={styles.container(hasMargin)}> <Component {...this.props}/> <DrawerBtn hasMargin={hasMargin} toggleDrawer={() => this.props.navigation.navigate('DrawerOpen')} /> </View> ) } }
function (_super) { __extends(TypicalApp, _super); function TypicalApp() { return _super !== null && _super.apply(this, arguments) || this; } TypicalApp.prototype.render = function () { return (React.createElement("div", null, React.createElement("span", null, "Matt"), React.createElement("br", null), React.createElement("span", null, "Landers"))); }; return TypicalApp; }(React.Component)
function (_Component) { babelHelpers.inherits(MyApp1, _Component); function MyApp1() { babelHelpers.classCallCheck(this, MyApp1); return babelHelpers.possibleConstructorReturn(this, (MyApp1.__proto__ || Object.getPrototypeOf(MyApp1)).apply(this, arguments)); } babelHelpers.createClass(MyApp1, [{ key: 'render', value: function render() { return _react2.default.createElement(_Login2.default, null); } }]); return MyApp1; }(_react.Component)
export function withNow(Component) { return class extends React.Component { render() { return ( <WithNow render={now => <Component {...this.props} now={now} />} /> ); } }; }
const withStyle = (FormInput) => { return class extends React.Component { render() { let {className = '', errors = [], ...rest} = this.props; let invalid = errors.length > 0; className = addCssClass(className, 'form-control'); if (invalid) { className = addCssClass(className, 'error'); } return <React.Fragment> <FormInput {...rest} className={className}/> {invalid ? <Label basic color='red' pointing>{errors.join(' ')}</Label> : ''} </React.Fragment> } }; }
function (_super) { __extends(MyCustomTextarea, _super); function MyCustomTextarea() { return _super !== null && _super.apply(this, arguments) || this; } MyCustomTextarea.prototype.handleValueChange = function (e) { this.props.onChange(e.target.value); }; MyCustomTextarea.prototype.render = function () { return (React.createElement(react_textarea_autosize_1.default, { value: this.props.value, onChange: this.handleValueChange.bind(this) })); }; return MyCustomTextarea; }(React.Component)
function (_Component) { _inherits(SomeComponent, _Component); function SomeComponent(props) { _classCallCheck(this, SomeComponent); return _possibleConstructorReturn(this, (SomeComponent.__proto__ || Object.getPrototypeOf(SomeComponent)).call(this, props)); } _createClass(SomeComponent, [{ key: 'render', value: function render() { return _react2.default.createElement( 'div', { className: 'zesty-animate' }, this.props.children ); } }]); return SomeComponent; }(_react.Component)
function (_super) { __extends(Routing, _super); function Routing() { return _super.apply(this, arguments) || this; } Routing.prototype.render = function () { return (React.createElement(react_router_1.Router, { history: react_router_1.hashHistory }, React.createElement(react_router_1.Route, { path: "/login", component: Login_1.default }, " "), React.createElement(react_router_1.Route, { path: "/main", component: AppContainer_1.default }), React.createElement(react_router_1.Redirect, { from: "/", to: "/login" }))); }; return Routing; }(React.Component)
function (_React$Component2) { babelHelpers.inherits(_class, _React$Component2); function _class() { babelHelpers.classCallCheck(this, _class); return babelHelpers.possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments)); } babelHelpers.createClass(_class, [{ key: 'render', value: function render() { throw null; } }]); return _class; }(React.Component)
function (_super) { __extends(NotFoundView, _super); function NotFoundView() { return _super !== null && _super.apply(this, arguments) || this; } NotFoundView.prototype.render = function () { return React.createElement("div", null, React.createElement("div", null, React.createElement(react_router_dom_1.Link, { to: "/" }, "Home")), React.createElement("h2", null, "404"), React.createElement("h3", null, "Page not found")); }; return NotFoundView; }(React.Component)
function (_Component) { babelHelpers.inherits(BackgroundImage, _Component); function BackgroundImage() { babelHelpers.classCallCheck(this, BackgroundImage); return babelHelpers.possibleConstructorReturn(this, (BackgroundImage.__proto__ || Object.getPrototypeOf(BackgroundImage)).apply(this, arguments)); } babelHelpers.createClass(BackgroundImage, [{ key: 'render', value: function render() { return _react2.default.createElement( _reactNative.Image, { source: require('../../public/images/bg1.jpg'), style: styles.backgroundImage }, this.props.children ); } }]); return BackgroundImage; }(_react.Component)
function (_super) { __extends(AppContainer, _super); function AppContainer() { return _super.apply(this, arguments) || this; } AppContainer.prototype.render = function () { return (React.createElement("div", { className: "AppContainer" }, React.createElement("h3", null, " This Is AppContainer"))); }; return AppContainer; }(React.Component)
function (_React$Component) { babelHelpers.inherits(StaticRenderer, _React$Component); function StaticRenderer() { babelHelpers.classCallCheck(this, StaticRenderer); return babelHelpers.possibleConstructorReturn(this, (StaticRenderer.__proto__ || Object.getPrototypeOf(StaticRenderer)).apply(this, arguments)); } babelHelpers.createClass(StaticRenderer, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps) { return nextProps.shouldUpdate; } }, { key: 'render', value: function render() { return this.props.render(); } }]); return StaticRenderer; }(React.Component)
function (_super) { __extends(App, _super); function App() { return _super !== null && _super.apply(this, arguments) || this; } App.prototype.render = function () { return (React.createElement(react_shadow_wrapper_1.default, null, React.createElement("span", null, "Matt"), React.createElement("br", null), React.createElement("span", null, "Landers"))); }; return App; }(React.Component)
function (_super) { __extends(TodoAbout, _super); function TodoAbout() { return _super !== null && _super.apply(this, arguments) || this; } TodoAbout.prototype.render = function () { return (React.createElement("div", { className: "info links todoabout", "ceddl-observe": "page", "data-category": "about" }, React.createElement("p", null, "This application is a ", React.createElement("a", { href: "http://todomvc.com/" }, "TodoMVC"), " example written using React."), React.createElement("p", null, "TodoMVC is a great project helping you select an MV* framework : ", React.createElement("a", { href: "http://todomvc.com/" }, "website")))); }; return TodoAbout; }(React.Component)