From 27fec9569e08a04e0dbdbd5de063a599ad0416fa Mon Sep 17 00:00:00 2001 From: jeswinsimon Date: Wed, 11 Aug 2021 17:52:19 -0700 Subject: [PATCH] Updated TextInput autoCompleteType prop to autoComplete 2/2 (#26010) Summary: Fix for bug https://github.com/facebook/react-native/issues/26003 Rename TextInput prop "autoCompleteType" to "autoComplete". ## Changelog [Android] [Breaking] - Updated `autoCompleteType` prop of `TextInput` to `autoComplete` Pull Request resolved: https://github.com/facebook/react-native/pull/26010 Test Plan: Sandcastle Reviewed By: mdvacca Differential Revision: D29795575 Pulled By: lunaleaps fbshipit-source-id: 6eba7030968e9b7384529a43a6cd1b3c9e8b2a2c --- .../Components/TextInput/AndroidTextInputNativeComponent.js | 2 +- Libraries/Components/TextInput/TextInput.js | 2 +- Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js index 0059f35cd63..e732564f42f 100644 --- a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js @@ -97,7 +97,7 @@ export type NativeProps = $ReadOnly<{| * * @platform android */ - autoCompleteType?: WithDefault< + autoComplete?: WithDefault< | 'cc-csc' | 'cc-exp' | 'cc-exp-month' diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index e25e3011446..74689bec473 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -331,7 +331,7 @@ type AndroidProps = $ReadOnly<{| * * @platform android */ - autoCompleteType?: ?( + autoComplete?: ?( | 'birthdate-day' | 'birthdate-full' | 'birthdate-month' diff --git a/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js index 0f371f7af2e..937e1c7a73e 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js @@ -64,7 +64,7 @@ module.exports = { * * @platform android */ - autoCompleteType: (PropTypes.oneOf([ + autoComplete: (PropTypes.oneOf([ 'cc-csc', 'cc-exp', 'cc-exp-month',