From a3bfa7d64d074bc913d4f4019ca8d0c689329825 Mon Sep 17 00:00:00 2001 From: Ben Wildeman Date: Tue, 28 Jan 2020 13:06:41 +0000 Subject: [PATCH] [react-native] Added missing importantForAutofill for TextInput (#35344) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [react-native] Added missing importantForAutofill for TextInput * correctly describe yesExcludeDescendants Co-authored-by: Eloy DurĂ¡n --- types/react-native/index.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index bf7ed05318..6913bbd1da 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1123,6 +1123,28 @@ export interface TextInputAndroidProps { | 'username' | 'off'; + /** + * Determines whether the individual fields in your app should be included in a + * view structure for autofill purposes on Android API Level 26+. Defaults to auto. + * To disable auto complete, use `off`. + * + * *Android Only* + * + * The following values work on Android only: + * + * - `auto` - let Android decide + * - `no` - not important for autofill + * - `noExcludeDescendants` - this view and its children aren't important for autofill + * - `yes` - is important for autofill + * - `yesExcludeDescendants` - this view is important for autofill but its children aren't + */ + importantForAutofill?: + | "auto" + | "no" + | "noExcludeDescendants" + | "yes" + | "yesExcludeDescendants"; + /** * When false, if there is a small amount of space available around a text input (e.g. landscape orientation on a phone), * the OS may choose to have the user edit the text inside of a full screen text input mode.