diff --git a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm index 56fa20ee69d5b1..6faf4ccd3285ab 100644 --- a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm @@ -134,14 +134,16 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const & _backedTextInputView.editable = newTextInputProps.traits.editable; } + NSString *text = RCTNSStringFromString(newTextInputProps.text); if (newTextInputProps.accessibilityErrorMessage != oldTextInputProps.accessibilityErrorMessage) { NSString *errorWithText = RCTNSStringFromString(newTextInputProps.accessibilityErrorMessage); - NSString *text = RCTNSStringFromString(newTextInputProps.text); if ([text length] != 0) { errorWithText = [NSString stringWithFormat: @"%@ %@", text, errorWithText]; } self.accessibilityElement.accessibilityValue = errorWithText; UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, errorWithText); + } else if (self.accessibilityElement.accessibilityValue != text) { + self.accessibilityElement.accessibilityValue = text; } if (newTextInputProps.traits.enablesReturnKeyAutomatically !=