Skip to content

Commit

Permalink
fix: prop name for passwordRules (#27999)
Browse files Browse the repository at this point in the history
Summary:
There was a typo in passwordRules prop for TextInput.

ref:
https://github.com/facebook/react-native/blob/master/ReactCommon/fabric/components/textinput/iostextinput/propsConversions.h#L106-L110
https://github.com/facebook/react-native/blob/master/Libraries/Components/TextInput/RCTSinglelineTextInputViewConfig.js#L126

## Changelog

[iOS] [Fixed] - Fix prop name of passwordRules in TextInput
Pull Request resolved: #27999

Test Plan: run `flow` type check with TextInput that has `passwordRules` in the prop.

Differential Revision: D19805819

Pulled By: TheSavior

fbshipit-source-id: a59729c466eb3f47675c7f1472bec269d6c3ed5d
  • Loading branch information
Naturalclar authored and facebook-github-bot committed Feb 10, 2020
1 parent 2bc2b43 commit 3f5c42f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ type IOSProps = $ReadOnly<{|
*/
textContentType?: ?TextContentType,

PasswordRules?: ?PasswordRules,
/**
* Provide rules for your password.
* For example, say you want to require a password with at least eight characters consisting of a mix of uppercase and lowercase letters, at least one number, and at most two consecutive characters.
* "required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 8;"
* @platform ios
*/
passwordRules?: ?PasswordRules,

/*
* @platform ios
Expand Down

0 comments on commit 3f5c42f

Please sign in to comment.