Skip to content

Commit 0ff7e71

Browse files
authored
disable inline predictions to prevent ios composer jank (#3363)
* disable inline predictions to prevent ios composer jank * temp bump * Revert "temp bump" This reverts commit 44c5113.
1 parent 3f79cb3 commit 0ff7e71

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

patches/@mattermost+react-native-paste-input+0.6.4.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,3 +3594,19 @@ index 19b61ff..04a9951 100644
35943594
PasteInput_compileSdkVersion=30
35953595
PasteInput_buildToolsVersion=30.0.2
35963596
PasteInput_targetSdkVersion=30
3597+
diff --git a/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m b/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
3598+
index e916023..0564d97 100644
3599+
--- a/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
3600+
+++ b/node_modules/@mattermost/react-native-paste-input/ios/PasteInputView.m
3601+
@@ -22,6 +22,11 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
3602+
_backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
3603+
_backedTextInputView.textInputDelegate = self;
3604+
3605+
+ // Disable inline predictions to prevent jank in the composer
3606+
+ if (@available(iOS 17.0, *)) {
3607+
+ _backedTextInputView.inlinePredictionType = UITextInlinePredictionTypeNo;
3608+
+ }
3609+
+
3610+
[self addSubview:_backedTextInputView];
3611+
}
3612+

0 commit comments

Comments
 (0)