1

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:

  1. For pure React Native, setting autoCorrect={false}, spellCheck={false} and autoComplete="off"

  2. 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.

Rameez Hussain
  • 6,414
  • 10
  • 56
  • 85

1 Answers1

0

Can you try keyboardType="visible-password" ?

Ovidiu Cristescu
  • 821
  • 7
  • 19
  • Ah, yes, I'd been using that. Forgot to mention that I'm using the `TextInput` from the `react-native-paper` library. I also had to use the `textContentType="password"` for it to work properly. – Rameez Hussain Aug 22 '22 at 12:40