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:
Chris Williams
2018-11-26 16:34:23 +00:00
committed by Lorenzo Sciandra
parent 79b33118ea
commit d0c8cb12f2
@@ -155,6 +155,8 @@ type IOSProps = $ReadOnly<{|
| 'telephoneNumber'
| 'username'
| 'password'
| 'newPassword'
| 'oneTimeCode'
),
scrollEnabled?: ?boolean,
|}>;
@@ -778,6 +780,8 @@ const TextInput = createReactClass({
'telephoneNumber',
'username',
'password',
'newPassword',
'oneTimeCode',
]),
},
getDefaultProps(): Object {