react-crud-mobile 1.3.384 → 1.3.385
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-crud-mobile.cjs.development.js +7 -3
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +8 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +10 -3
|
@@ -1455,6 +1455,7 @@ function UIToast() {
|
|
|
1455
1455
|
function UIModal(props) {
|
|
1456
1456
|
var _theme$styles;
|
|
1457
1457
|
var scrollRef = React.useRef(null);
|
|
1458
|
+
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
1458
1459
|
var owner = props.scope;
|
|
1459
1460
|
var _useState = React.useState(0),
|
|
1460
1461
|
index = _useState[0],
|
|
@@ -1537,14 +1538,17 @@ function UIModal(props) {
|
|
|
1537
1538
|
});
|
|
1538
1539
|
};
|
|
1539
1540
|
var content = /*#__PURE__*/jsxRuntime.jsx(Content, {});
|
|
1541
|
+
var area = {
|
|
1542
|
+
paddingTop: insets.top
|
|
1543
|
+
};
|
|
1540
1544
|
if (original["transient"]) {
|
|
1541
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1542
|
-
style: style('modalSafe'),
|
|
1545
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNativeSafeAreaContext.SafeAreaView, {
|
|
1546
|
+
style: style('modalSafe', area),
|
|
1543
1547
|
children: content
|
|
1544
1548
|
});
|
|
1545
1549
|
}
|
|
1546
1550
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaView, {
|
|
1547
|
-
style: style('modalSafe'),
|
|
1551
|
+
style: style('modalSafe', area),
|
|
1548
1552
|
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
1549
1553
|
style: scope.getStyle('header', headerStyle),
|
|
1550
1554
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
|