mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove autoCompleteType as a native component prop
Summary: Changelog: [Android][Internal] - Cleanup `autoCompleteType` prop from Android native component. Reviewed By: charlesbdudley Differential Revision: D30057497 fbshipit-source-id: c80dd5682b314112ae70551bf8135372bb1ddc8b
This commit is contained in:
1 parent
27fec9569e
commit
18132c1597
3 files changed
-14
No files matched your search
-6
@@ -728,12 +728,6 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: T96744578 - Delete autoCompleteType prop
|
||||
@ReactProp(name = "autoCompleteType")
|
||||
public void setTextContentTypeDeprecated(ReactEditText view, @Nullable String autoCompleteType) {
|
||||
setTextContentType(view, autoCompleteType);
|
||||
}
|
||||
|
||||
@ReactProp(name = "autoCorrect")
|
||||
public void setAutoCorrect(ReactEditText view, @Nullable Boolean autoCorrect) {
|
||||
// clear auto correct flags, set SUGGESTIONS or NO_SUGGESTIONS depending on value
|
||||
|
||||
-7
@@ -48,12 +48,6 @@ AndroidTextInputProps::AndroidTextInputProps(
|
||||
"autoComplete",
|
||||
sourceProps.autoComplete,
|
||||
{})),
|
||||
autoCompleteType(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"autoCompleteType",
|
||||
sourceProps.autoCompleteType,
|
||||
{})),
|
||||
returnKeyLabel(convertRawProp(context, rawProps,
|
||||
"returnKeyLabel",
|
||||
sourceProps.returnKeyLabel,
|
||||
@@ -267,7 +261,6 @@ AndroidTextInputProps::AndroidTextInputProps(
|
||||
// TODO T53300085: support this in codegen; this was hand-written
|
||||
folly::dynamic AndroidTextInputProps::getDynamic() const {
|
||||
folly::dynamic props = folly::dynamic::object();
|
||||
props["autoCompleteType"] = autoCompleteType;
|
||||
props["autoComplete"] = autoComplete;
|
||||
props["returnKeyLabel"] = returnKeyLabel;
|
||||
props["numberOfLines"] = numberOfLines;
|
||||
|
||||
-1
@@ -108,7 +108,6 @@ class AndroidTextInputProps final : public ViewProps, public BaseTextProps {
|
||||
#pragma mark - Props
|
||||
|
||||
const std::string autoComplete{};
|
||||
const std::string autoCompleteType{};
|
||||
const std::string returnKeyLabel{};
|
||||
const int numberOfLines{0};
|
||||
const bool disableFullscreenUI{false};
|
||||
|
||||
Reference in new issue
Block a user