From ae38bb538cdf89105ef97cf76ac2df48f1a7b01e Mon Sep 17 00:00:00 2001 From: Monir Abu Hilal Date: Thu, 19 May 2016 00:48:02 -0700 Subject: [PATCH] Do not treat `lineHeight` as a unitless numbers Match the behavior of react-native for iOS and Android The browser treats the 'line-height' CSS property as an 'em' value, while react-native treats it as pixel unit (or device unit, which should be 'px' for the web), this issue is causing the 'TextInput' component to be sized incorrectly. Close #142 --- src/apis/StyleSheet/normalizeValue.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/apis/StyleSheet/normalizeValue.js b/src/apis/StyleSheet/normalizeValue.js index 1b644f1b..72de99de 100644 --- a/src/apis/StyleSheet/normalizeValue.js +++ b/src/apis/StyleSheet/normalizeValue.js @@ -9,7 +9,6 @@ const unitlessNumbers = { flexNegative: true, fontWeight: true, lineClamp: true, - lineHeight: true, opacity: true, order: true, orphans: true,