react-crud-mobile 1.0.913 → 1.0.915

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.
@@ -1311,6 +1311,18 @@ function UIToast() {
1311
1311
  });
1312
1312
  }
1313
1313
 
1314
+ var MobileUtils = /*#__PURE__*/function () {
1315
+ function MobileUtils() {}
1316
+ MobileUtils.syncTheme = function syncTheme() {
1317
+ var _current$colors;
1318
+ var current = reactCrudUtils.ThemeUtils.getCurrentTheme();
1319
+ var name = reactCrudUtils.Utils.nvl(current.theme, 'light-content');
1320
+ reactNative.StatusBar.setBarStyle == null || reactNative.StatusBar.setBarStyle(name);
1321
+ reactNative.StatusBar.setBackgroundColor == null || reactNative.StatusBar.setBackgroundColor(current == null || (_current$colors = current.colors) == null ? void 0 : _current$colors.theme);
1322
+ };
1323
+ return MobileUtils;
1324
+ }();
1325
+
1314
1326
  function UIModal(props) {
1315
1327
  var _theme$styles, _main$dialog2;
1316
1328
  var _useState = React.useState(false),
@@ -1384,8 +1396,7 @@ function UIModal(props) {
1384
1396
  scope.update();
1385
1397
  };
1386
1398
  React.useEffect(function () {
1387
- reactNative.StatusBar.setBarStyle('light-content');
1388
- reactNative.StatusBar.setBackgroundColor == null || reactNative.StatusBar.setBackgroundColor(theme.colors.primary);
1399
+ MobileUtils.syncTheme();
1389
1400
  }, [modalVisible]);
1390
1401
  var curr = scope.currentDialog;
1391
1402
  if (!curr) {
@@ -1477,8 +1488,7 @@ var styles$8 = /*#__PURE__*/reactNative.StyleSheet.create({
1477
1488
  modalContent: {
1478
1489
  flex: 1,
1479
1490
  backgroundColor: 'background',
1480
- paddingHorizontal: 16,
1481
- paddingVertical: 20
1491
+ padding: 10
1482
1492
  }
1483
1493
  });
1484
1494
 
@@ -1492,8 +1502,7 @@ function UIView(_ref) {
1492
1502
  var headerTextStyle = reactCrudUtils.Utils.nvl((_theme$styles2 = theme.styles) == null || (_theme$styles2 = _theme$styles2.defaults) == null ? void 0 : _theme$styles2.headerText, {});
1493
1503
  var scrollRef = React.useRef(null);
1494
1504
  React.useEffect(function () {
1495
- reactNative.StatusBar.setBarStyle('light-content');
1496
- reactNative.StatusBar.setBackgroundColor == null || reactNative.StatusBar.setBackgroundColor(theme.colors.theme);
1505
+ MobileUtils.syncTheme();
1497
1506
  }, []);
1498
1507
  var onScroll = function onScroll() {
1499
1508
  var crud = reactCrudUtils.ViewUtils.getCrud();
@@ -1551,8 +1560,7 @@ function UIView(_ref) {
1551
1560
  }
1552
1561
  var styles$9 = /*#__PURE__*/reactNative.StyleSheet.create({
1553
1562
  scroll: {
1554
- paddingHorizontal: 16,
1555
- paddingVertical: 20
1563
+ padding: 10
1556
1564
  },
1557
1565
  container: {},
1558
1566
  view: {}
@@ -2113,8 +2121,7 @@ function SafeView(props) {
2113
2121
  }
2114
2122
  };
2115
2123
  React.useEffect(function () {
2116
- reactNative.StatusBar.setBarStyle('light-content');
2117
- reactNative.StatusBar.setBackgroundColor == null || reactNative.StatusBar.setBackgroundColor(theme.colors.primary);
2124
+ MobileUtils.syncTheme();
2118
2125
  }, []);
2119
2126
  return /*#__PURE__*/jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaProvider, {
2120
2127
  children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.StatusBar, {