diff options
author | Hailey <me@haileyok.com> | 2024-03-31 15:55:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 15:55:30 -0700 |
commit | 0ff7e71ee356c692580d1931044cc92c59f381cb (patch) | |
tree | 86303445079a799a7af0f8031033f5e5ac4d12b0 /patches/@mattermost+react-native-paste-input+0.6.4.patch | |
parent | 3f79cb3e12fa09428b8069f9204396df03d7ad2b (diff) | |
download | voidsky-0ff7e71ee356c692580d1931044cc92c59f381cb.tar.zst |
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 44c51134a35d817c73edb1e635495597c95117b3.
Diffstat (limited to 'patches/@mattermost+react-native-paste-input+0.6.4.patch')
-rw-r--r-- | patches/@mattermost+react-native-paste-input+0.6.4.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/@mattermost+react-native-paste-input+0.6.4.patch b/patches/@mattermost+react-native-paste-input+0.6.4.patch index 849cbaa85..08413846f 100644 --- a/patches/@mattermost+react-native-paste-input+0.6.4.patch +++ b/patches/@mattermost+react-native-paste-input+0.6.4.patch @@ -3594,3 +3594,19 @@ index 19b61ff..04a9951 100644 PasteInput_compileSdkVersion=30 PasteInput_buildToolsVersion=30.0.2 PasteInput_targetSdkVersion=30 +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]; + } + |