Skip to content

Commit

Permalink
Add iOS 12 textContentType options (#21079)
Browse files Browse the repository at this point in the history
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: #21079

Differential Revision: D9813328

Pulled By: TheSavior

fbshipit-source-id: d2c04b41121b32f185af38ea4c642924e261a043
  • Loading branch information
ultramiraculous authored and kelset committed Nov 26, 2018
1 parent 79b3311 commit d0c8cb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Expand Up @@ -155,6 +155,8 @@ type IOSProps = $ReadOnly<{|
| 'telephoneNumber'
| 'username'
| 'password'
| 'newPassword'
| 'oneTimeCode'
),
scrollEnabled?: ?boolean,
|}>;
Expand Down Expand Up @@ -778,6 +780,8 @@ const TextInput = createReactClass({
'telephoneNumber',
'username',
'password',
'newPassword',
'oneTimeCode',
]),
},
getDefaultProps(): Object {
Expand Down

0 comments on commit d0c8cb1

Please sign in to comment.