Keep placeholder paragraph style same with single line text input (#23765)

Summary:
Keep placeholder paragraph style same with text input.

[iOS] [Fixed] - Keep placeholder paragraph style same with single line text input
Pull Request resolved: https://github.com/facebook/react-native/pull/23765

Differential Revision: D14321255

Pulled By: cpojer

fbshipit-source-id: 2b8cbb7f2c7ceb40a9a2b142065dd6f5eb3d62eb
This commit is contained in:
zhongwuzw
2019-03-05 00:06:17 -08:00
committed by Facebook Github Bot
parent debd4462e0
commit af52693e9c

View File

@@ -122,6 +122,11 @@
effectiveTextAttributes[NSKernAttributeName] = @(_reactTextAttributes.letterSpacing);
}
NSParagraphStyle *paragraphStyle = [_reactTextAttributes effectiveParagraphStyle];
if (paragraphStyle) {
effectiveTextAttributes[NSParagraphStyleAttributeName] = paragraphStyle;
}
return [effectiveTextAttributes copy];
}