react-crud-mobile 1.3.134 → 1.3.136

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.
@@ -1409,6 +1409,34 @@ function UIModal(_ref) {
1409
1409
  children: props.children
1410
1410
  });
1411
1411
  };
1412
+ var ModalContent = function ModalContent(_ref2) {
1413
+ var children = _ref2.children;
1414
+ var disableScroll = scope.getPart('disableScroll', false);
1415
+ var disableContent = scope.getPart('disableContent', false);
1416
+ console.log(scope.original);
1417
+ if (disableContent) {
1418
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1419
+ children: children
1420
+ });
1421
+ }
1422
+ if (disableScroll) {
1423
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1424
+ style: style('modalContent'),
1425
+ ref: scrollRef,
1426
+ children: children
1427
+ });
1428
+ }
1429
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
1430
+ contentContainerStyle: {
1431
+ flexGrow: 1,
1432
+ paddingBottom: 50
1433
+ },
1434
+ style: style('modalContent'),
1435
+ nestedScrollEnabled: true,
1436
+ ref: scrollRef,
1437
+ children: children
1438
+ });
1439
+ };
1412
1440
  return /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
1413
1441
  animationType: "slide",
1414
1442
  transparent: true,
@@ -1438,14 +1466,7 @@ function UIModal(_ref) {
1438
1466
  "transient": true,
1439
1467
  children: headerRight
1440
1468
  })]
1441
- }), /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
1442
- contentContainerStyle: {
1443
- flexGrow: 1,
1444
- paddingBottom: 50
1445
- },
1446
- style: style('modalContent'),
1447
- nestedScrollEnabled: true,
1448
- ref: scrollRef,
1469
+ }), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
1449
1470
  children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1450
1471
  style: {
1451
1472
  flex: 1,