mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix rendering of textInput using lineHeight in android API level <28 (#42673)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42673 Fix rendering of textInput using lineHeight in android API level <28 by removing call to ReactEditText.setLineHeight. ReactEditText.setLineHeight was introduced in API level 28 and we actually don't need to call this method changelog: [Internal] internal Differential Revision: D53105649 fbshipit-source-id: f2d81cfea10de84bd47efbfeac1e21837fd49a11
This commit is contained in:
committed by
Facebook GitHub Bot
parent
62e5980954
commit
142f13db63
+3
-1
@@ -273,7 +273,9 @@ public class ReactEditText extends AppCompatEditText {
|
||||
@Override
|
||||
public void setLineHeight(int lineHeight) {
|
||||
mTextAttributes.setLineHeight(lineHeight);
|
||||
super.setLineHeight(lineHeight);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
super.setLineHeight(lineHeight);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user