diff --git a/docs/textinput.md b/docs/textinput.md index 5c3f4ffca0d..590ff1f5d83 100644 --- a/docs/textinput.md +++ b/docs/textinput.md @@ -853,6 +853,12 @@ Possible values for `textAlign` are: Give the keyboard and the system information about the expected semantic meaning for the content that users enter. +:::note +[`autoComplete`](#autocomplete), provides the same functionality and is available for all platforms. You can use [`Platform.select`](/docs/next/platform#select) for differing platform behaviors. + +Avoid using both `textContentType` and `autoComplete`. For backwards compatibility, `textContentType` takes precedence when both properties are set. +::: + For iOS 11+ you can set `textContentType` to `username` or `password` to enable autofill of login details from the device keychain. For iOS 12+ `newPassword` can be used to indicate a new password input the user may want to save in the keychain, and `oneTimeCode` can be used to indicate that a field can be autofilled by a code arriving in an SMS. diff --git a/website/versioned_docs/version-0.71/textinput.md b/website/versioned_docs/version-0.71/textinput.md index 5c3f4ffca0d..60e73ecdd81 100644 --- a/website/versioned_docs/version-0.71/textinput.md +++ b/website/versioned_docs/version-0.71/textinput.md @@ -853,6 +853,16 @@ Possible values for `textAlign` are: Give the keyboard and the system information about the expected semantic meaning for the content that users enter. +:::note +[`autoComplete`](#autocomplete), introduced to iOS in 0.71, provides the same functionality and is available for all platforms. You can use [`Platform.select`](/docs/platform#select) for differing platform behaviors. + +Avoid using both `textContentType` and `autoComplete`. +::: + +:::caution +A breaking change was introduced in 0.71 where `autoComplete` overrides `textContentType` on iOS when both properties are set. >=0.71.5 reverts the breaking change such that `textContentType` takes precedence. +::: + For iOS 11+ you can set `textContentType` to `username` or `password` to enable autofill of login details from the device keychain. For iOS 12+ `newPassword` can be used to indicate a new password input the user may want to save in the keychain, and `oneTimeCode` can be used to indicate that a field can be autofilled by a code arriving in an SMS.