react-crud-mobile 1.3.147 → 1.3.149

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.
@@ -1355,7 +1355,7 @@ function UIModal(_ref) {
1355
1355
  var _useState2 = React.useState(0),
1356
1356
  index = _useState2[0],
1357
1357
  setIndex = _useState2[1];
1358
- //v6
1358
+ //v8
1359
1359
  var label = scope.getLabel();
1360
1360
  var theme = scope.getTheme();
1361
1361
  var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
@@ -1390,6 +1390,7 @@ function UIModal(_ref) {
1390
1390
  var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
1391
1391
  var bottom = reactCrudUtils.ComponentUtils.getDefine(props, 'bottom');
1392
1392
  scope.put('scrollRef', scrollRef);
1393
+ var original = scope.original;
1393
1394
  reactCrudUtils.ComponentUtils.setViewScope(scope);
1394
1395
  var color = reactCrudUtils.Utils.nvl(headerStyle.color, 'white');
1395
1396
  var defaults = {
@@ -1438,7 +1439,6 @@ function UIModal(_ref) {
1438
1439
  };
1439
1440
  var ModalView = function ModalView(_ref3) {
1440
1441
  var children = _ref3.children;
1441
- var original = scope.original;
1442
1442
  if (original.gesture) {
1443
1443
  return /*#__PURE__*/jsxRuntime.jsx(reactNativeGestureHandler.GestureHandlerRootView, {
1444
1444
  style: {
@@ -1451,12 +1451,11 @@ function UIModal(_ref) {
1451
1451
  children: children
1452
1452
  });
1453
1453
  };
1454
- return /*#__PURE__*/jsxRuntime.jsx(ModalView, {
1455
- children: /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
1456
- animationType: "slide",
1457
- transparent: true,
1458
- visible: modalVisible,
1459
- onRequestClose: onClose,
1454
+ var ModalInner = function ModalInner() {
1455
+ if (original["transient"]) {
1456
+ return /*#__PURE__*/jsxRuntime.jsx(Content, {});
1457
+ }
1458
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1460
1459
  children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.SafeAreaView, {
1461
1460
  style: style('modalTop')
1462
1461
  }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.SafeAreaView, {
@@ -1494,6 +1493,15 @@ function UIModal(_ref) {
1494
1493
  })
1495
1494
  }), bottom]
1496
1495
  }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1496
+ });
1497
+ };
1498
+ return /*#__PURE__*/jsxRuntime.jsx(ModalView, {
1499
+ children: /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
1500
+ animationType: "slide",
1501
+ transparent: true,
1502
+ visible: modalVisible,
1503
+ onRequestClose: onClose,
1504
+ children: /*#__PURE__*/jsxRuntime.jsx(ModalInner, {})
1497
1505
  }, key)
1498
1506
  });
1499
1507
  }