UNPKG

@ramses-superapp/ramses-ui

Version:

Skinless UI primitives for Ramses Built Apps

38 lines (37 loc) 883 B
"use strict"; import { forwardRef } from 'react'; import { Modal, Pressable, View } from 'react-native'; import { jsx as _jsx } from "react/jsx-runtime"; const RsModal = /*#__PURE__*/forwardRef(({ visible, onClose, animationType = 'fade', children, style }, ref) => { return /*#__PURE__*/_jsx(Modal, { visible: visible, transparent: true, animationType: animationType, onRequestClose: onClose, children: /*#__PURE__*/_jsx(Pressable, { style: { flex: 1 }, onPress: onClose, children: /*#__PURE__*/_jsx(View, { ref: ref, style: [{ flex: 1 }, style], children: /*#__PURE__*/_jsx(Pressable, { onPress: () => {}, children: children }) }) }) }); }); RsModal.displayName = 'RsModal'; export default RsModal; //# sourceMappingURL=RsModal.js.map