mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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:
committed by
Facebook Github Bot
parent
debd4462e0
commit
af52693e9c
@@ -122,6 +122,11 @@
|
||||
effectiveTextAttributes[NSKernAttributeName] = @(_reactTextAttributes.letterSpacing);
|
||||
}
|
||||
|
||||
NSParagraphStyle *paragraphStyle = [_reactTextAttributes effectiveParagraphStyle];
|
||||
if (paragraphStyle) {
|
||||
effectiveTextAttributes[NSParagraphStyleAttributeName] = paragraphStyle;
|
||||
}
|
||||
|
||||
return [effectiveTextAttributes copy];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user