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 facebook-github-bot committed Sep 13, 2018
1 parent 023d650 commit 644fc57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ type IOSProps = $ReadOnly<{|
| 'telephoneNumber'
| 'username'
| 'password'
| 'newPassword'
| 'oneTimeCode'
),
scrollEnabled?: ?boolean,
|}>;
Expand Down Expand Up @@ -787,6 +789,8 @@ const TextInput = createReactClass({
'telephoneNumber',
'username',
'password',
'newPassword',
'oneTimeCode',
]),
},
getDefaultProps(): Object {
Expand Down

0 comments on commit 644fc57

Please sign in to comment.