From d40e8e855e7e9a3d89a859ecce5b0d7602a9a814 Mon Sep 17 00:00:00 2001 From: Christian Brevik Date: Mon, 2 Apr 2018 09:32:28 +0200 Subject: [PATCH] Update textinput.md with textContentType --- docs/textinput.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/docs/textinput.md b/docs/textinput.md index 5b9b3dff408..ab53ec91421 100644 --- a/docs/textinput.md +++ b/docs/textinput.md @@ -137,6 +137,7 @@ Note that on Android performing text selection in input can change app's activit - [`selectionState`](textinput.md#selectionstate) - [`selectTextOnFocus`](textinput.md#selecttextonfocus) - [`spellCheck`](textinput.md#spellcheck) +- [`textContentType`](textinput.md#textcontenttype) - [`style`](textinput.md#style) - [`textBreakStrategy`](textinput.md#textbreakstrategy) - [`underlineColorAndroid`](textinput.md#underlinecolorandroid) @@ -659,6 +660,49 @@ If `false`, disables spell-check style (i.e. red underlines). The default value --- +### `textContentType` + +Give the keyboard and the system information about the expected semantic meaning for the content that users enter. + +For iOS 11+ you can set `textContentType` to `username` or `password` to enable autofill of login details from the device keychain. + +To disable autofill, set `textContentType` to `none`. + +Possible values for `textContentType` are: + +* `none` +* `URL` +* `addressCity` +* `addressCityAndState` +* `addressState` +* `countryName` +* `creditCardNumber` +* `emailAddress` +* `familyName` +* `fullStreetAddress` +* `givenName` +* `jobTitle` +* `location` +* `middleName` +* `name` +* `namePrefix` +* `nameSuffix` +* `nickname` +* `organizationName` +* `postalCode` +* `streetAddressLine1` +* `streetAddressLine2` +* `sublocality` +* `telephoneNumber` +* `username` +* `password` + +| Type | Required | Platform | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | +| enum('none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password') | No | iOS | + +--- + ### `style` Note that not all Text styles are supported, an incomplete list of what is not supported includes: