Skip to content

Commit

Permalink
Implement [RCTUITextField selectedRange] (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Apr 25, 2024
1 parent c6d6cd2 commit c383cfa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 c383cfa

Please sign in to comment.