UNPKG

@ramses-superapp/ramses-ui

Version:

Skinless UI primitives for Ramses Built Apps

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