We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a4a348 commit 10678c4Copy full SHA for 10678c4
packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
@@ -269,12 +269,12 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
269
_backedTextInputView.defaultTextAttributes[RCTAttributedStringEventEmitterKey];
270
#endif
271
272
- NSMutableParagraphStyle *paragraphStyle = defaultAttributes[NSParagraphStyleAttributeName];
273
-
274
if (!newTextInputProps.multiline) {
+ NSMutableParagraphStyle *paragraphStyle = defaultAttributes[NSParagraphStyleAttributeName];
275
paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail;
276
defaultAttributes[NSParagraphStyleAttributeName] = paragraphStyle;
277
}
+
278
_backedTextInputView.defaultTextAttributes = defaultAttributes;
279
280
0 commit comments