upgrade paste input

This commit is contained in:
Samuel Newman
2025-01-07 12:59:13 +00:00
parent 615bbc3532
commit f1fea8558c
3 changed files with 14 additions and 21 deletions
@@ -1,11 +1,11 @@
diff --git a/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m b/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
index e916023..0564d97 100644
index e916023..811574c 100644
--- a/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
+++ b/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
@@ -22,6 +22,11 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
@@ -22,6 +22,11 @@
_backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_backedTextInputView.textInputDelegate = self;
+ // Disable inline predictions to prevent jank in the composer
+ if (@available(iOS 17.0, *)) {
+ _backedTextInputView.inlinePredictionType = UITextInlinePredictionTypeNo;
@@ -13,4 +13,4 @@ index e916023..0564d97 100644
+
[self addSubview:_backedTextInputView];
}