From a4639ec394b3c781e54218add934b11474da8b8b Mon Sep 17 00:00:00 2001 From: Pablo Espinosa Date: Sat, 8 Feb 2020 21:27:26 +0000 Subject: [PATCH] Added new docs for PasswordRules Prop Most of this was taken from here https://github.com/facebook/react-native/pull/25407 --- docs/textinput.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/textinput.md b/docs/textinput.md index bd9fe190611..9d88c66c16c 100644 --- a/docs/textinput.md +++ b/docs/textinput.md @@ -756,6 +756,17 @@ Possible values for `textContentType` are: --- +### `passwordRules` + +When using `textContentType` as `newPassword` on iOS we can let the OS know the minimum requirements of the password so that it can generate one that will satisfy them. +In order to create a valid string for `PasswordRules` take a look to the [Apple Docs](https://developer.apple.com/password-rules/). + +| Type | Required | Platform | +| ------ | -------- | -------- | +| string | No | iOS | + +--- + ### `style` Note that not all Text styles are supported, an incomplete list of what is not supported includes: