Skip to content

Commit 3f5c42f

Browse files
Naturalclarfacebook-github-bot
authored andcommitted
fix: prop name for passwordRules (#27999)
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
1 parent 2bc2b43 commit 3f5c42f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Libraries/Components/TextInput/TextInput.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,13 @@ type IOSProps = $ReadOnly<{|
267267
*/
268268
textContentType?: ?TextContentType,
269269

270-
PasswordRules?: ?PasswordRules,
270+
/**
271+
* Provide rules for your password.
272+
* 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.
273+
* "required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 8;"
274+
* @platform ios
275+
*/
276+
passwordRules?: ?PasswordRules,
271277

272278
/*
273279
* @platform ios

0 commit comments

Comments
 (0)