secullum-react-native-ui 4.7.1 → 4.7.2-beta.0
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.
|
@@ -12,6 +12,7 @@ class CheckBox extends React.Component {
|
|
|
12
12
|
this.getStyles = () => {
|
|
13
13
|
const theme = (0, theme_1.getTheme)();
|
|
14
14
|
const { disabled } = this.props;
|
|
15
|
+
const iconSize = (0, layout_1.isTablet)() ? 24 : 20;
|
|
15
16
|
return react_native_1.StyleSheet.create({
|
|
16
17
|
container: {
|
|
17
18
|
flexDirection: 'row',
|
|
@@ -19,10 +20,10 @@ class CheckBox extends React.Component {
|
|
|
19
20
|
},
|
|
20
21
|
icon: {
|
|
21
22
|
color: disabled ? theme.disabledColor : theme.textColor1,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
lineHeight:
|
|
23
|
+
width: (0, layout_1.isTablet)() ? 28 : 24,
|
|
24
|
+
fontSize: iconSize,
|
|
25
|
+
height: iconSize,
|
|
26
|
+
lineHeight: iconSize
|
|
26
27
|
},
|
|
27
28
|
label: {
|
|
28
29
|
color: disabled ? theme.disabledColor : theme.textColor1,
|
|
@@ -147,8 +147,8 @@ class DropDown extends React.Component {
|
|
|
147
147
|
lineHeight: 16
|
|
148
148
|
},
|
|
149
149
|
text: {
|
|
150
|
-
lineHeight: 22,
|
|
151
|
-
minHeight: 22,
|
|
150
|
+
lineHeight: (0, layout_1.isTablet)() ? 28 : 22,
|
|
151
|
+
minHeight: (0, layout_1.isTablet)() ? 28 : 22,
|
|
152
152
|
textAlignVertical: 'center',
|
|
153
153
|
color: theme.textColor1,
|
|
154
154
|
fontFamily: theme.fontFamily1,
|
package/lib/components/Header.js
CHANGED