diff --git a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm index b5433539d47..b7a76f07d27 100644 --- a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm @@ -421,11 +421,9 @@ using namespace facebook::react; } _comingFromJS = YES; if (![value isEqualToString:_backedTextInputView.attributedText.string]) { - NSMutableAttributedString *mutableString = - [[NSMutableAttributedString alloc] initWithAttributedString:_backedTextInputView.attributedText]; - [mutableString replaceCharactersInRange:NSMakeRange(0, _backedTextInputView.attributedText.length) - withString:value]; - [self _setAttributedString:mutableString]; + NSAttributedString *attributedString = + [[NSAttributedString alloc] initWithString:value attributes:_backedTextInputView.defaultTextAttributes]; + [self _setAttributedString:attributedString]; [self _updateState]; }