@@ -182,7 +182,6 @@ - (void)_addDismissSelectionRecognizer
182182
183183 _dismissSelectionRecognizer =
184184 [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (_handleTapToDismissSelection: )];
185- // The tap still reaches the component the user tapped.
186185 _dismissSelectionRecognizer.cancelsTouchesInView = NO ;
187186 _dismissSelectionRecognizer.delaysTouchesBegan = NO ;
188187 _dismissSelectionRecognizer.delaysTouchesEnded = NO ;
@@ -253,7 +252,6 @@ @implementation RCTParagraphComponentView {
253252 RCTParagraphTextView *_textView;
254253 CGRect _textLayoutFrame;
255254#if !TARGET_OS_TV
256- // Selection state. `_selectableTextView` is non-nil only while `selectable` is set.
257255 RCTSelectableTextView *_selectableTextView;
258256 RCTTextLayoutManager *_selectionLayoutManager;
259257 NSAttributedString *_selectionRenderedText;
@@ -563,7 +561,6 @@ - (void)enableContextMenu
563561- (void )disableContextMenu
564562{
565563 [self removeSelectableTextView ];
566- // Nothing else uses it while the paragraph is not selectable.
567564 _selectionLayoutManager = nil ;
568565}
569566
@@ -576,9 +573,8 @@ - (void)removeSelectableTextView
576573}
577574
578575/*
579- * Builds or repositions the selectable text view. A `UITextView` binds its text
580- * container at initialisation, so it is rebuilt only when the text or the
581- * available size actually changes.
576+ * A `UITextView` binds its text container at initialisation, so the selectable
577+ * text view is rebuilt only when the text or the available size changes.
582578 */
583579- (void )updateSelectableTextViewWithDrawingFrame : (CGRect)drawingFrame
584580{
@@ -616,8 +612,6 @@ - (void)updateSelectableTextViewWithDrawingFrame:(CGRect)drawingFrame
616612 }
617613
618614 _selectableTextView.frame = drawingFrame;
619- // Copy reads the range from the painted string, not from the stripped copy
620- // the text view lays out.
621615 _selectableTextView.sourceAttributedText = attributedText;
622616}
623617
0 commit comments