react-native-gallery-preview
Version:
<div> <img align="right" height="720" src="example.gif"> </div>
26 lines (25 loc) • 723 B
JavaScript
;
import React from "react";
import { StyleSheet } from "react-native";
import { Modal, View } from "react-native";
import { jsx as _jsx } from "react/jsx-runtime";
export function ModalContainer(props) {
return /*#__PURE__*/_jsx(Modal, {
transparent: true,
animationType: props.isVisible ? "fade" : "none",
presentationStyle: "overFullScreen",
visible: props.isVisible,
onRequestClose: props.onRequestClose,
supportedOrientations: ["portrait", "landscape"],
children: /*#__PURE__*/_jsx(View, {
style: styles.wrapper,
children: props.children
})
});
}
const styles = StyleSheet.create({
wrapper: {
flex: 1
}
});
//# sourceMappingURL=ModalContainer.js.map