react-crud-mobile 1.3.21 → 1.3.23

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.
@@ -504,7 +504,7 @@ var MobileUtils = /*#__PURE__*/function () {
504
504
  }();
505
505
 
506
506
  function UISelect(props) {
507
- var _theme$colors;
507
+ var _theme$styles, _theme$colors;
508
508
  var _useState = React.useState(false),
509
509
  modalVisible = _useState[0],
510
510
  setModalVisible = _useState[1];
@@ -515,6 +515,7 @@ function UISelect(props) {
515
515
  var value = scope.getDisplayValue();
516
516
  var main = reactCrudUtils.ViewUtils.getCrud('view');
517
517
  var theme = scope.getTheme();
518
+ var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
518
519
  var handlePress = function handlePress() {
519
520
  var _modalVisible = !modalVisible;
520
521
  main.data.selectIsOpen = _modalVisible;
@@ -540,7 +541,7 @@ function UISelect(props) {
540
541
  var isModalVisible = function isModalVisible() {
541
542
  return modalVisible;
542
543
  };
543
- //v1
544
+ //v2
544
545
  React.useEffect(function () {
545
546
  MobileUtils.syncTheme();
546
547
  }, [modalVisible]);
@@ -570,7 +571,7 @@ function UISelect(props) {
570
571
  }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.SafeAreaView, {
571
572
  style: style('modalSafe'),
572
573
  children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
573
- style: style('modalHeader'),
574
+ style: scope.getStyle('header', headerStyle),
574
575
  children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
575
576
  onPress: function onPress() {
576
577
  return setModalVisible(false);