Skip to content

Commit

Permalink
[0.74] [RCTBackedTextInputDelegate] Add nullable annotation to method (
Browse files Browse the repository at this point in the history
…#2222)

* [RCTBackedTextInputDelegate] Add nullable annotation to method

Avoid UBSAN error for expected behavior in environments where enabled.

* macOS annotation
  • Loading branch information
nakambo authored Oct 17, 2024
1 parent af98cb1 commit e4bc585
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4bc585

Please sign in to comment.