Skip to content

Commit af52693

Browse files
zhongwuzwfacebook-github-bot
authored andcommitted
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: #23765 Differential Revision: D14321255 Pulled By: cpojer fbshipit-source-id: 2b8cbb7f2c7ceb40a9a2b142065dd6f5eb3d62eb
1 parent debd446 commit af52693

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Libraries/Text/TextInput/Singleline/RCTUITextField.m

+5
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ - (BOOL)scrollEnabled
122122
effectiveTextAttributes[NSKernAttributeName] = @(_reactTextAttributes.letterSpacing);
123123
}
124124

125+
NSParagraphStyle *paragraphStyle = [_reactTextAttributes effectiveParagraphStyle];
126+
if (paragraphStyle) {
127+
effectiveTextAttributes[NSParagraphStyleAttributeName] = paragraphStyle;
128+
}
129+
125130
return [effectiveTextAttributes copy];
126131
}
127132

0 commit comments

Comments
 (0)