File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ - (void)didMoveToWindow {
70
70
} else if ([backedTextInputView isKindOfClass: [RCTUITextView class ]]) {
71
71
_textView = (RCTUITextView *)backedTextInputView;
72
72
[_textView setMarkdownUtils: _markdownUtils];
73
- object_setClass (_textView.layoutManager , [MarkdownLayoutManager class ]);
74
- [_textView.layoutManager setValue: _markdownUtils forKey: @" markdownUtils" ];
73
+ NSLayoutManager *layoutManager = _textView.layoutManager ; // switching to TextKit 1 compatibility mode
74
+ layoutManager.allowsNonContiguousLayout = NO ; // workaround for onScroll issue
75
+ object_setClass (layoutManager, [MarkdownLayoutManager class ]);
76
+ [layoutManager setValue: _markdownUtils forKey: @" markdownUtils" ];
75
77
} else {
76
78
react_native_assert (false && " Cannot enable Markdown for this type of TextInput." );
77
79
}
You can’t perform that action at this time.
0 commit comments