diff --git a/Libraries/Text/TextInput/RCTBaseTextInputView.m b/Libraries/Text/TextInput/RCTBaseTextInputView.m index 7f2a6e6996366b..95cc7b654655da 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputView.m @@ -458,7 +458,7 @@ - (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range if (range.location + range.length > backedTextInputView.attributedText.string.length) { _predictedText = backedTextInputView.attributedText.string; - } else { + } else if (text != nil) { _predictedText = [backedTextInputView.attributedText.string stringByReplacingCharactersInRange:range withString:text]; }