Skip to content

Commit a81f13b

Browse files
Saadnajmiclaude
andcommitted
fix(iOS): let UITextView handle touches natively for text selection
Remove hitTest:withEvent: override on iOS in RCTParagraphSelectableTextView so UITextView receives touches and handles selection natively. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f885a50 commit a81f13b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,9 @@ - (BOOL)resignFirstResponder
738738

739739
#else
740740

741-
- (RCTUIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
742-
{
743-
// Let the parent RCTParagraphComponentView handle touch routing.
744-
return nil;
745-
}
741+
// On iOS, let UITextView handle touches natively for selection support.
742+
// No hitTest override needed — UITextView's built-in gesture recognizers
743+
// handle long-press-to-select and other selection interactions.
746744

747745
#endif
748746

0 commit comments

Comments
 (0)