react-crud-mobile 1.3.148 → 1.3.150

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.
@@ -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,16 @@ 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(reactNative.View, {
1457
+ style: {
1458
+ flex: 1
1459
+ },
1460
+ children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
1461
+ });
1462
+ }
1463
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1460
1464
  children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.SafeAreaView, {
1461
1465
  style: style('modalTop')
1462
1466
  }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.SafeAreaView, {
@@ -1494,6 +1498,15 @@ function UIModal(_ref) {
1494
1498
  })
1495
1499
  }), bottom]
1496
1500
  }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1501
+ });
1502
+ };
1503
+ return /*#__PURE__*/jsxRuntime.jsx(ModalView, {
1504
+ children: /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
1505
+ animationType: "slide",
1506
+ transparent: true,
1507
+ visible: modalVisible,
1508
+ onRequestClose: onClose,
1509
+ children: /*#__PURE__*/jsxRuntime.jsx(ModalInner, {})
1497
1510
  }, key)
1498
1511
  });
1499
1512
  }