diff --git a/Libraries/Components/TextInput/TextInput.d.ts b/Libraries/Components/TextInput/TextInput.d.ts index 12cfec2987cb..37cf6e4ad1c7 100644 --- a/Libraries/Components/TextInput/TextInput.d.ts +++ b/Libraries/Components/TextInput/TextInput.d.ts @@ -39,7 +39,7 @@ export type KeyboardTypeIOS = | 'name-phone-pad' | 'twitter' | 'web-search'; -export type KeyboardTypeAndroid = 'visible-password'; +export type KeyboardTypeAndroid = 'no-suggestions' | 'visible-password'; export type KeyboardTypeOptions = | KeyboardType | KeyboardTypeAndroid diff --git a/Libraries/Components/TextInput/TextInput.flow.js b/Libraries/Components/TextInput/TextInput.flow.js index 57259190f1a4..a6b42f587754 100644 --- a/Libraries/Components/TextInput/TextInput.flow.js +++ b/Libraries/Components/TextInput/TextInput.flow.js @@ -120,6 +120,7 @@ export type KeyboardType = // iOS 10+ only | 'ascii-capable-number-pad' // Android-only + | 'no-suggestions' | 'visible-password'; export type InputMode = diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index ec337de164ef..d5d5ffabb818 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -158,6 +158,7 @@ export type KeyboardType = // iOS 10+ only | 'ascii-capable-number-pad' // Android-only + | 'no-suggestions' | 'visible-password'; export type InputMode = @@ -677,6 +678,7 @@ export type Props = $ReadOnly<{| * * The following values work on Android only: * + * - `no-suggestions` * - `visible-password` * */ diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index f4733dfcd2bc..a8396ea6bbbc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -165,6 +165,7 @@ public class ReactTextInputManager extends BaseViewManager