react-crud-mobile 1.3.70 → 1.3.71
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 +25 -15
- 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 +25 -15
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIView.tsx +23 -13
|
@@ -1524,6 +1524,7 @@ function UIView(_ref) {
|
|
|
1524
1524
|
var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
|
|
1525
1525
|
var headerTextStyle = Utils.nvl((_theme$styles2 = theme.styles) == null || (_theme$styles2 = _theme$styles2.defaults) == null ? void 0 : _theme$styles2.headerText, {});
|
|
1526
1526
|
var scrollRef = useRef(null);
|
|
1527
|
+
var original = scope.original;
|
|
1527
1528
|
useEffect(function () {
|
|
1528
1529
|
MobileUtils.syncTheme();
|
|
1529
1530
|
}, []);
|
|
@@ -1557,27 +1558,36 @@ function UIView(_ref) {
|
|
|
1557
1558
|
};
|
|
1558
1559
|
scope.put('scrollRef', scrollRef);
|
|
1559
1560
|
ComponentUtils.setViewScope(scope);
|
|
1561
|
+
var Container = function Container() {
|
|
1562
|
+
if (original.scroll === false) {
|
|
1563
|
+
return /*#__PURE__*/jsx(UIChildren, {
|
|
1564
|
+
scope: scope,
|
|
1565
|
+
children: children
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
return /*#__PURE__*/jsx(ScrollView, {
|
|
1569
|
+
onScroll: onScroll,
|
|
1570
|
+
scrollEventThrottle: 16,
|
|
1571
|
+
ref: scrollRef,
|
|
1572
|
+
nestedScrollEnabled: true,
|
|
1573
|
+
keyboardShouldPersistTaps: "handled",
|
|
1574
|
+
contentContainerStyle: scope.getStyle('contentContainer', {
|
|
1575
|
+
paddingBottom: 50
|
|
1576
|
+
}),
|
|
1577
|
+
style: scope.getStyle('scroll', styles$9.scroll),
|
|
1578
|
+
children: /*#__PURE__*/jsx(UIChildren, {
|
|
1579
|
+
scope: scope,
|
|
1580
|
+
children: children
|
|
1581
|
+
})
|
|
1582
|
+
});
|
|
1583
|
+
};
|
|
1560
1584
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
1561
1585
|
children: [hasHeader && /*#__PURE__*/jsx(View, {
|
|
1562
1586
|
style: headerStyleFull,
|
|
1563
1587
|
children: /*#__PURE__*/jsx(AuxHeader, {})
|
|
1564
1588
|
}), /*#__PURE__*/jsx(View, {
|
|
1565
1589
|
style: scope.getStyle('container', styles$9.container),
|
|
1566
|
-
children: /*#__PURE__*/jsx(
|
|
1567
|
-
onScroll: onScroll,
|
|
1568
|
-
scrollEventThrottle: 16,
|
|
1569
|
-
ref: scrollRef,
|
|
1570
|
-
nestedScrollEnabled: true,
|
|
1571
|
-
keyboardShouldPersistTaps: "handled",
|
|
1572
|
-
contentContainerStyle: scope.getStyle('contentContainer', {
|
|
1573
|
-
paddingBottom: 50
|
|
1574
|
-
}),
|
|
1575
|
-
style: scope.getStyle('scroll', styles$9.scroll),
|
|
1576
|
-
children: /*#__PURE__*/jsx(UIChildren, {
|
|
1577
|
-
scope: scope,
|
|
1578
|
-
children: children
|
|
1579
|
-
})
|
|
1580
|
-
})
|
|
1590
|
+
children: /*#__PURE__*/jsx(Container, {})
|
|
1581
1591
|
}), /*#__PURE__*/jsx(UIToast, {})]
|
|
1582
1592
|
});
|
|
1583
1593
|
}
|