Skip to content

Commit 27fec95

Browse files
jeswinsimonfacebook-github-bot
authored andcommitted
Updated TextInput autoCompleteType prop to autoComplete 2/2 (#26010)
Summary: Fix for bug #26003 Rename TextInput prop "autoCompleteType" to "autoComplete". ## Changelog [Android] [Breaking] - Updated `autoCompleteType` prop of `TextInput` to `autoComplete` Pull Request resolved: #26010 Test Plan: Sandcastle Reviewed By: mdvacca Differential Revision: D29795575 Pulled By: lunaleaps fbshipit-source-id: 6eba7030968e9b7384529a43a6cd1b3c9e8b2a2c
1 parent cbec66e commit 27fec95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Libraries/Components/TextInput/AndroidTextInputNativeComponent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export type NativeProps = $ReadOnly<{|
9797
*
9898
* @platform android
9999
*/
100-
autoCompleteType?: WithDefault<
100+
autoComplete?: WithDefault<
101101
| 'cc-csc'
102102
| 'cc-exp'
103103
| 'cc-exp-month'

Libraries/Components/TextInput/TextInput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ type AndroidProps = $ReadOnly<{|
331331
*
332332
* @platform android
333333
*/
334-
autoCompleteType?: ?(
334+
autoComplete?: ?(
335335
| 'birthdate-day'
336336
| 'birthdate-full'
337337
| 'birthdate-month'

Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = {
6464
*
6565
* @platform android
6666
*/
67-
autoCompleteType: (PropTypes.oneOf([
67+
autoComplete: (PropTypes.oneOf([
6868
'cc-csc',
6969
'cc-exp',
7070
'cc-exp-month',

0 commit comments

Comments
 (0)