react-crud-mobile 1.3.529 → 1.3.530

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/index.js CHANGED
@@ -1398,7 +1398,6 @@ function UIQuantity(props) {
1398
1398
  // src/elements/core/UIModal.tsx
1399
1399
  var import_react14 = require("react");
1400
1400
  var import_react_crud_utils15 = require("react-crud-utils");
1401
- var import_react_native17 = require("react-native");
1402
1401
 
1403
1402
  // src/elements/core/UIToast.tsx
1404
1403
  var import_react_native16 = require("react-native");
@@ -1452,6 +1451,7 @@ function UIToast() {
1452
1451
 
1453
1452
  // src/elements/core/UIModal.tsx
1454
1453
  var import_react_native_safe_area_context2 = require("react-native-safe-area-context");
1454
+ var import_react_native17 = require("react-native");
1455
1455
  var import_jsx_runtime22 = require("react/jsx-runtime");
1456
1456
  function UIModal(props) {
1457
1457
  const scrollRef = (0, import_react14.useRef)(null);
@@ -1486,8 +1486,7 @@ function UIModal(props) {
1486
1486
  const ModalInner = () => {
1487
1487
  let area = {};
1488
1488
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react_native_safe_area_context2.SafeAreaView, { style: style("modalSafe", area), children: [
1489
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UIChildren, { scope, children: custom }),
1490
- ";",
1489
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UIChildren, { transient: true, scope, children: custom }),
1491
1490
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UIToast, {})
1492
1491
  ] });
1493
1492
  };
@@ -1587,7 +1586,6 @@ function UIView({ scope, children }) {
1587
1586
  const scrollRef = (0, import_react16.useRef)(null);
1588
1587
  const original = scope.original;
1589
1588
  const crud = scope.crud;
1590
- const isDialog = crud.is("dialog") || crud.is("modal");
1591
1589
  const onScroll = () => {
1592
1590
  const crud2 = import_react_crud_utils17.ViewUtils.getCrud();
1593
1591
  import_react_crud_utils17.Utils.each(crud2.scroll, (s) => {
@@ -1600,20 +1598,6 @@ function UIView({ scope, children }) {
1600
1598
  if (!crud.is("dialog")) crud.view = scope;
1601
1599
  import_react_crud_utils17.ComponentUtils.setViewScope(scope);
1602
1600
  let Container = () => {
1603
- if (isDialog) {
1604
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1605
- import_react_native19.ScrollView,
1606
- {
1607
- contentContainerStyle: scope.getStyle("contentContainer", {
1608
- paddingBottom: 50
1609
- }),
1610
- style: scope.getStyle("scroll", styles10.scroll),
1611
- nestedScrollEnabled: true,
1612
- ref: scrollRef,
1613
- children
1614
- }
1615
- );
1616
- }
1617
1601
  if (original.scroll === false) {
1618
1602
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UIChildren, { scope, children });
1619
1603
  }
@@ -1626,7 +1610,8 @@ function UIView({ scope, children }) {
1626
1610
  nestedScrollEnabled: true,
1627
1611
  keyboardShouldPersistTaps: "handled",
1628
1612
  contentContainerStyle: scope.getStyle("contentContainer", {
1629
- paddingBottom: 50
1613
+ paddingBottom: 50,
1614
+ flexGrow: 1
1630
1615
  }),
1631
1616
  style: scope.getStyle("scroll", styles10.scroll),
1632
1617
  children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UIChildren, { scope, children })