react-crud-mobile 1.3.337 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.337",
3
+ "version": "1.3.338",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -52,6 +52,27 @@ export default function UISelect(props: ChildType) {
52
52
  const isModalVisible = () => {
53
53
  return modalVisible;
54
54
  };
55
+
56
+ const getLabelStyle = () => {
57
+ const css: any = style('selectLabel');
58
+ let fs = parseInt(css.fontSize);
59
+
60
+ if (!fs) {
61
+ fs = 14;
62
+ }
63
+
64
+ let lh = Utils.nvl(css.lineHeight, fs + 2);
65
+
66
+ css.fontSize = fs;
67
+ css.lineHeight = lh;
68
+
69
+ return css;
70
+ };
71
+
72
+ const labelStyle = getLabelStyle();
73
+ const defIconSize = Utils.nvl(labelStyle.fontSize, 14) + 2;
74
+ const iconSize = scope.getPart('iconSize', null, defIconSize);
75
+
55
76
  //v4
56
77
 
57
78
  return (
@@ -60,12 +81,10 @@ export default function UISelect(props: ChildType) {
60
81
  style={style('selectRoot')}
61
82
  >
62
83
  <TouchableOpacity onPress={handlePress} style={style('selectInput')}>
63
- <Text style={style('selectLabel')}>
64
- {Utils.nvl(value, placeholder)}
65
- </Text>
84
+ <Text style={labelStyle}>{Utils.nvl(value, placeholder)}</Text>
66
85
  <Ionicons
67
86
  name="chevron-down-outline"
68
- size={scope.getPart('iconSize', null, 24)}
87
+ size={iconSize}
69
88
  color={scope.getPart('iconColor', null, iconColor)}
70
89
  style={style('iconStyle', {})}
71
90
  />
@@ -146,7 +165,7 @@ const styles = StyleSheet.create({
146
165
  borderColor: '#dedede',
147
166
  paddingVertical: 10,
148
167
  },
149
- selectLabel: { flex: 1 },
168
+ selectLabel: { flex: 1, fontSize: 14 },
150
169
  modalTop: {
151
170
  backgroundColor: 'primary',
152
171
  width: '100%',