Skip to content

Commit 644fc57

Browse files
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: #21079 Differential Revision: D9813328 Pulled By: TheSavior fbshipit-source-id: d2c04b41121b32f185af38ea4c642924e261a043
1 parent 023d650 commit 644fc57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/Components/TextInput/TextInput.js

+4
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ type IOSProps = $ReadOnly<{|
155155
| 'telephoneNumber'
156156
| 'username'
157157
| 'password'
158+
| 'newPassword'
159+
| 'oneTimeCode'
158160
),
159161
scrollEnabled?: ?boolean,
160162
|}>;
@@ -787,6 +789,8 @@ const TextInput = createReactClass({
787789
'telephoneNumber',
788790
'username',
789791
'password',
792+
'newPassword',
793+
'oneTimeCode',
790794
]),
791795
},
792796
getDefaultProps(): Object {

0 commit comments

Comments
 (0)