I've looked around quite a bit and can't seem to find an elegant solution to this. I basically need to disable any kind of suggestions that show up above the keyboard in both Android
and iOS
. So far, the solutions I've tried seem to work the iOS
simulator at least, but not on Android
.
I've tried the following:
For pure React Native, setting
autoCorrect={false}
,spellCheck={false}
andautoComplete="off"
For Native
Android
,importantForAutofill="no"
or:
getWindow().getDecorView().setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS);
In the onCreate(...)
method of MainActivity
.
For Android
, is there any way to disable these suggestions completely? Perhaps some configuration in the AndroidManifest
or styles
? Any help is appreciated.
EDIT: I'm using the TextInput
from the react-native-paper
library.