UNPKG

react-native-gallery-preview

Version:

<div> <img align="right" height="720" src="example.gif"> </div>

30 lines (29 loc) 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModalContainer = ModalContainer; var _react = _interopRequireDefault(require("react")); var _reactNative = require("react-native"); var _jsxRuntime = require("react/jsx-runtime"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function ModalContainer(props) { return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, { transparent: true, animationType: props.isVisible ? "fade" : "none", presentationStyle: "overFullScreen", visible: props.isVisible, onRequestClose: props.onRequestClose, supportedOrientations: ["portrait", "landscape"], children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { style: styles.wrapper, children: props.children }) }); } const styles = _reactNative.StyleSheet.create({ wrapper: { flex: 1 } }); //# sourceMappingURL=ModalContainer.js.map