react-crud-mobile 1.0.710 → 1.0.712

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.
@@ -1261,12 +1261,13 @@ var styles$8 = /*#__PURE__*/reactNative.StyleSheet.create({
1261
1261
  });
1262
1262
 
1263
1263
  function UIView(_ref) {
1264
- var _theme$styles;
1264
+ var _theme$styles, _theme$styles2;
1265
1265
  var scope = _ref.scope,
1266
1266
  children = _ref.children;
1267
- var theme = reactCrudUtils.useTheme();
1267
+ var theme = scope.getTheme();
1268
1268
  var header = scope.getPart('header', null, []);
1269
1269
  var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
1270
+ var headerTextStyle = reactCrudUtils.Utils.nvl((_theme$styles2 = theme.styles) == null || (_theme$styles2 = _theme$styles2.defaults) == null ? void 0 : _theme$styles2.headerText, {});
1270
1271
  React.useEffect(function () {
1271
1272
  reactNative.StatusBar.setBarStyle('light-content');
1272
1273
  reactNative.StatusBar.setBackgroundColor == null || reactNative.StatusBar.setBackgroundColor(theme.colors.primary);
@@ -1280,10 +1281,21 @@ function UIView(_ref) {
1280
1281
  });
1281
1282
  };
1282
1283
  var hasHeader = !reactCrudUtils.Utils.isEmpty(header);
1284
+ var AuxHeader = function AuxHeader() {
1285
+ if (typeof header === 'string') {
1286
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1287
+ style: headerTextStyle,
1288
+ children: header
1289
+ });
1290
+ }
1291
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1292
+ children: header
1293
+ });
1294
+ };
1283
1295
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1284
1296
  children: [hasHeader && /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1285
1297
  style: scope.getStyle('header', headerStyle),
1286
- children: header
1298
+ children: /*#__PURE__*/jsxRuntime.jsx(AuxHeader, {})
1287
1299
  }), /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1288
1300
  style: scope.getStyle('container', styles$9.container),
1289
1301
  children: /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {