about summary refs log tree commit diff
path: root/patches/@mattermost+react-native-paste-input+0.7.1.patch
blob: dbf55b09590013bef1bdfe44d1973d7d42a7dff3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
--- 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
     _backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
     _backedTextInputView.textInputDelegate = self;

+    // Disable inline predictions to prevent jank in the composer
+    if (@available(iOS 17.0, *)) {
+      _backedTextInputView.inlinePredictionType = UITextInlinePredictionTypeNo;
+    }
+
     [self addSubview:_backedTextInputView];
   }