Skip to content

Commit 05d533d

Browse files
authored
[RCTBackedTextInputDelegate] Add nullable annotation to method (#2221)
* [RCTBackedTextInputDelegate] Add nullable annotation to method Avoid UBSAN error for expected behavior in environments where enabled. * macOS annotation
1 parent 09cf897 commit 05d533d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
3939
* reject the change completely. To change the replacement, return the changed version of the `text`. To accept the
4040
* change, return `text` argument as-is. To reject the change, return `nil`.
4141
*/
42-
- (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range;
42+
- (nullable NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range; // [macOS]
4343
- (void)textInputDidChange;
4444

4545
- (void)textInputDidChangeSelection;

0 commit comments

Comments
 (0)