react-crud-mobile 1.3.21 → 1.3.22

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.
@@ -496,7 +496,7 @@ var MobileUtils = /*#__PURE__*/function () {
496
496
  }();
497
497
 
498
498
  function UISelect(props) {
499
- var _theme$colors;
499
+ var _theme$styles, _theme$colors;
500
500
  var _useState = useState(false),
501
501
  modalVisible = _useState[0],
502
502
  setModalVisible = _useState[1];
@@ -507,6 +507,7 @@ function UISelect(props) {
507
507
  var value = scope.getDisplayValue();
508
508
  var main = ViewUtils.getCrud('view');
509
509
  var theme = scope.getTheme();
510
+ var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
510
511
  var handlePress = function handlePress() {
511
512
  var _modalVisible = !modalVisible;
512
513
  main.data.selectIsOpen = _modalVisible;
@@ -562,7 +563,7 @@ function UISelect(props) {
562
563
  }), /*#__PURE__*/jsxs(SafeAreaView, {
563
564
  style: style('modalSafe'),
564
565
  children: [/*#__PURE__*/jsxs(View, {
565
- style: style('modalHeader'),
566
+ style: scope.getStyle('header', headerStyle),
566
567
  children: [/*#__PURE__*/jsx(TouchableOpacity, {
567
568
  onPress: function onPress() {
568
569
  return setModalVisible(false);