From 8066bc9ff6a3f1d6910ccd346ce0fe6b7b4b16fc Mon Sep 17 00:00:00 2001 From: jeswinsimon Date: Fri, 30 Jul 2021 03:14:54 -0700 Subject: [PATCH] Updated TextInput autoCompleteType prop to autoComplete 1/2 (#26010) Summary: Fix for bug https://github.com/facebook/react-native/issues/26003 Rename TextInput prop "autoCompleteType" to "autoComplete". ## Changelog [Android] [Changed] - Updated `autoCompleteType` prop of `TextInput` to `autoComplete` Pull Request resolved: https://github.com/facebook/react-native/pull/26010 Test Plan: Test Pass PR for [Doc Update](https://github.com/facebook/react-native-website/pull/1184) Reviewed By: mdvacca Differential Revision: D29980220 Pulled By: lunaleaps fbshipit-source-id: 3c9e7d3250b5f95b0dbd523fdb0d917a039cd6a9 --- .../TextInput/AndroidTextInputViewConfig.js | 1 + .../textinput/ReactTextInputManager.java | 21 ++++++++++++------- .../AndroidTextInputProps.cpp | 7 +++++++ .../androidtextinput/AndroidTextInputProps.h | 1 + 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js index e1a693d5f70..bb36f91ffbf 100644 --- a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +++ b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js @@ -83,6 +83,7 @@ const AndroidTextInputViewConfig = { multiline: true, color: {process: require('../../StyleSheet/processColor')}, autoCompleteType: true, + autoComplete: true, numberOfLines: true, letterSpacing: true, returnKeyLabel: true, diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index de88cb84ced..43e6638ffc2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -715,20 +715,25 @@ public class ReactTextInputManager extends BaseViewManager