Skip to content

Commit

Permalink
Implement [RCTUITextField selectedRange] (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Apr 25, 2024
1 parent 423fb52 commit 9bf4f6e
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -121,6 +121,12 @@ - (instancetype)initWithFrame:(CGRect)frame
return self;
}

#if TARGET_OS_OSX
- (NSRange)selectedRange {
return [[self currentEditor] selectedRange];
}
#endif

- (void)_textDidChange
{
_textWasPasted = NO;
Expand Down

0 comments on commit 9bf4f6e

Please sign in to comment.