[react-native] Added missing importantForAutofill for TextInput (#35344)

* [react-native] Added missing importantForAutofill for TextInput

* correctly describe yesExcludeDescendants

Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
This commit is contained in:
Ben Wildeman
2020-01-28 14:06:41 +01:00
committed by Eloy Durán
co-authored by Eloy Durán
parent 6d993e42ec
commit a3bfa7d64d
+22
View File
@@ -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.