Skip to content

Commit f404ac4

Browse files
Sankhadeep RoySankhadeep Roy
authored andcommitted
platform specific lineheight
1 parent 7bf08ff commit f404ac4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Components/Themes/light.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ module.exports = {
110110
return this.inputPaddingLeft* 8;
111111
},
112112

113+
btnLineHeight: (Platform.OS==='ios') ? 20 : 23,
114+
113115
dropdownBg: "#000",
114116
dropdownLinkColor: "#414142",
115117

Components/Widgets/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class Button extends NativeBaseComponent {
8383

8484
fontSize: (this.props.large) ? this.getTheme().btnTextSizeLarge : (this.props.small) ? this.getTheme().btnTextSizeSmall : this.getTheme().btnTextSize,
8585

86-
lineHeight: (this.props.large) ? 29 : (this.props.small) ? 16 : 20
86+
lineHeight: (this.props.large) ? 29 : (this.props.small) ? 16 : this.getTheme().btnLineHeight,
8787
}
8888

8989
return _.merge(mergedStyle, btnType, this.props.textStyle);

0 commit comments

Comments
 (0)