Skip to content

Commit 602704a

Browse files
committed
fix: intercept textView's gesture recognizers
1 parent b75e47c commit 602704a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ios/EnrichedTextInputView.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
using namespace facebook::react;
2020

21-
@interface EnrichedTextInputView () <RCTEnrichedTextInputViewViewProtocol, UITextViewDelegate, NSObject>
21+
@interface EnrichedTextInputView () <RCTEnrichedTextInputViewViewProtocol, UITextViewDelegate, UIGestureRecognizerDelegate, NSObject>
2222

2323
@end
2424

@@ -140,6 +140,9 @@ - (void)setupTextView {
140140
textView.delegate = self;
141141
textView.input = self;
142142
textView.layoutManager.input = self;
143+
for(UIGestureRecognizer *recognizer in textView.gestureRecognizers) {
144+
recognizer.delegate = self;
145+
}
143146
}
144147

145148
- (void)setupPlaceholderLabel {

0 commit comments

Comments
 (0)