diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h b/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h index f90f11c91810cd..5b49265d808306 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h @@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN * reject the change completely. To change the replacement, return the changed version of the `text`. To accept the * change, return `text` argument as-is. To reject the change, return `nil`. */ -- (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range; +- (nullable NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range; // [macOS] - (void)textInputDidChange; - (void)textInputDidChangeSelection;