From d0c8cb12f21604fd9730e275a52816d7fd00a826 Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Thu, 13 Sep 2018 14:44:30 -0700 Subject: [PATCH] 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 --- Libraries/Components/TextInput/TextInput.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 839e0be9d26..d323df04eb9 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -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 {