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.
- package/dist/react-crud-mobile.cjs.development.js +20 -7
- 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 +20 -7
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +31 -11
|
@@ -1381,6 +1381,7 @@ function UIModal(_ref) {
|
|
|
1381
1381
|
var headerRight = ComponentUtils.getDefine(props, 'header', 'right');
|
|
1382
1382
|
var bottom = ComponentUtils.getDefine(props, 'bottom');
|
|
1383
1383
|
scope.put('scrollRef', scrollRef);
|
|
1384
|
+
var original = scope.original;
|
|
1384
1385
|
ComponentUtils.setViewScope(scope);
|
|
1385
1386
|
var color = Utils.nvl(headerStyle.color, 'white');
|
|
1386
1387
|
var defaults = {
|
|
@@ -1429,7 +1430,6 @@ function UIModal(_ref) {
|
|
|
1429
1430
|
};
|
|
1430
1431
|
var ModalView = function ModalView(_ref3) {
|
|
1431
1432
|
var children = _ref3.children;
|
|
1432
|
-
var original = scope.original;
|
|
1433
1433
|
if (original.gesture) {
|
|
1434
1434
|
return /*#__PURE__*/jsx(GestureHandlerRootView, {
|
|
1435
1435
|
style: {
|
|
@@ -1442,12 +1442,16 @@ function UIModal(_ref) {
|
|
|
1442
1442
|
children: children
|
|
1443
1443
|
});
|
|
1444
1444
|
};
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1445
|
+
var ModalInner = function ModalInner() {
|
|
1446
|
+
if (original["transient"]) {
|
|
1447
|
+
return /*#__PURE__*/jsx(View, {
|
|
1448
|
+
style: {
|
|
1449
|
+
flex: 1
|
|
1450
|
+
},
|
|
1451
|
+
children: /*#__PURE__*/jsx(Content, {})
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
1451
1455
|
children: [/*#__PURE__*/jsx(SafeAreaView, {
|
|
1452
1456
|
style: style('modalTop')
|
|
1453
1457
|
}), /*#__PURE__*/jsxs(SafeAreaView, {
|
|
@@ -1485,6 +1489,15 @@ function UIModal(_ref) {
|
|
|
1485
1489
|
})
|
|
1486
1490
|
}), bottom]
|
|
1487
1491
|
}), /*#__PURE__*/jsx(UIToast, {})]
|
|
1492
|
+
});
|
|
1493
|
+
};
|
|
1494
|
+
return /*#__PURE__*/jsx(ModalView, {
|
|
1495
|
+
children: /*#__PURE__*/jsx(Modal, {
|
|
1496
|
+
animationType: "slide",
|
|
1497
|
+
transparent: true,
|
|
1498
|
+
visible: modalVisible,
|
|
1499
|
+
onRequestClose: onClose,
|
|
1500
|
+
children: /*#__PURE__*/jsx(ModalInner, {})
|
|
1488
1501
|
}, key)
|
|
1489
1502
|
});
|
|
1490
1503
|
}
|