UNPKG

react-native-render-lynx

Version:

Render a LynxJS bundle in your React Native application.

30 lines (29 loc) 936 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = RenderLynxView; var _reactNative = require("react-native"); var _RenderLynxViewNativeComponent = _interopRequireDefault(require("./RenderLynxViewNativeComponent")); var _jsxRuntime = require("react/jsx-runtime"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function RenderLynxView(props) { const bundleUrl = props.bundleUrl || 'main.lynx.bundle'; return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { ...props, style: [styles.container, props.style], children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RenderLynxViewNativeComponent.default, { bundleUrl: bundleUrl, style: styles.native }) }); } const styles = _reactNative.StyleSheet.create({ container: { overflow: 'hidden' }, native: { flex: 1 } }); //# sourceMappingURL=RenderLynxView.js.map