Add iOS 12 textContentType options (#21079)
Summary: Adding the new `textContentType` options from iOS 12. `newPassword` helps the OS know to put a password field into the keychain, and `oneTimeCode` hints that the field will take input from an SMS one time code. Pull Request resolved: https://github.com/facebook/react-native/pull/21079 Differential Revision: D9813328 Pulled By: TheSavior fbshipit-source-id: d2c04b41121b32f185af38ea4c642924e261a043
This commit is contained in:
parent
023d650a0d
commit
644fc57fad
|
@ -155,6 +155,8 @@ type IOSProps = $ReadOnly<{|
|
|||
| 'telephoneNumber'
|
||||
| 'username'
|
||||
| 'password'
|
||||
| 'newPassword'
|
||||
| 'oneTimeCode'
|
||||
),
|
||||
scrollEnabled?: ?boolean,
|
||||
|}>;
|
||||
|
@ -787,6 +789,8 @@ const TextInput = createReactClass({
|
|||
'telephoneNumber',
|
||||
'username',
|
||||
'password',
|
||||
'newPassword',
|
||||
'oneTimeCode',
|
||||
]),
|
||||
},
|
||||
getDefaultProps(): Object {
|
||||
|
|
Loading…
Reference in New Issue