react-crud-mobile 1.3.336 → 1.3.338

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.
@@ -531,6 +531,20 @@ function UISelect(props) {
531
531
  var isModalVisible = function isModalVisible() {
532
532
  return modalVisible;
533
533
  };
534
+ var getLabelStyle = function getLabelStyle() {
535
+ var css = style('selectLabel');
536
+ var fs = parseInt(css.fontSize);
537
+ if (!fs) {
538
+ fs = 14;
539
+ }
540
+ var lh = Utils.nvl(css.lineHeight, fs + 2);
541
+ css.fontSize = fs;
542
+ css.lineHeight = lh;
543
+ return css;
544
+ };
545
+ var labelStyle = getLabelStyle();
546
+ var defIconSize = Utils.nvl(labelStyle.fontSize, 14) + 2;
547
+ var iconSize = scope.getPart('iconSize', null, defIconSize);
534
548
  //v4
535
549
  return /*#__PURE__*/jsxs(View, {
536
550
  style: style('selectRoot'),
@@ -538,11 +552,11 @@ function UISelect(props) {
538
552
  onPress: handlePress,
539
553
  style: style('selectInput'),
540
554
  children: [/*#__PURE__*/jsx(Text, {
541
- style: style('selectLabel'),
555
+ style: labelStyle,
542
556
  children: Utils.nvl(value, placeholder)
543
557
  }), /*#__PURE__*/jsx(Ionicons$1, {
544
558
  name: "chevron-down-outline",
545
- size: scope.getPart('iconSize', null, 24),
559
+ size: iconSize,
546
560
  color: scope.getPart('iconColor', null, iconColor),
547
561
  style: style('iconStyle', {})
548
562
  })]
@@ -626,7 +640,8 @@ var styles$3 = /*#__PURE__*/StyleSheet.create({
626
640
  paddingVertical: 10
627
641
  },
628
642
  selectLabel: {
629
- flex: 1
643
+ flex: 1,
644
+ fontSize: 14
630
645
  },
631
646
  modalTop: {
632
647
  backgroundColor: 'primary',