Skip to content

Commit 981ab97

Browse files
committed
Add missing config change on Android for lineHeight support
1 parent 748f86b commit 981ab97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/github/amarcruz/rntextsize/RNTextSizeConf.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ static boolean supportUpperCaseTransform() {
6767
final String fontFamily;
6868
final float fontSize;
6969
final int fontStyle;
70+
final float lineHeight;
7071
final boolean includeFontPadding;
7172
final float letterSpacing;
7273
final @Nullable Integer numberOfLines;
@@ -85,6 +86,7 @@ static boolean supportUpperCaseTransform() {
8586
fontFamily = getString("fontFamily");
8687
fontSize = getFontSizeOrDefault();
8788
fontStyle = getFontStyle();
89+
lineHeight = getFloatOrNaN("lineHeight");
8890
includeFontPadding = forText && getBooleanOrTrue("includeFontPadding");
8991

9092
// letterSpacing is supported in RN 0.55+

0 commit comments

Comments
 (0)