Files
discord-decomp/_bundle/Module4557.js
T
2026-11-01 12:12:55 +02:00

87 lines
2.2 KiB
JavaScript

// Metro module 4557 (f4558).
import { codegenNativeCommands, codegenNativeComponent } from "react-native";
import { colorAttribute } from "./Module26";
import { ConditionallyIgnoredEventHandlers } from "./Module106";
import { get } from "./Module65";
import { dispatchCommand } from "./Module114";
codegenNativeCommands;
codegenNativeComponent;
let c2765_2 = {
uiViewClassName: "RNSSearchBar",
directEventTypes: {
topSearchFocus: {
registrationName: "onSearchFocus"
},
topSearchBlur: {
registrationName: "onSearchBlur"
},
topSearchButtonPress: {
registrationName: "onSearchButtonPress"
},
topCancelButtonPress: {
registrationName: "onCancelButtonPress"
},
topChangeText: {
registrationName: "onChangeText"
},
topClose: {
registrationName: "onClose"
},
topOpen: {
registrationName: "onOpen"
}
},
validAttributes: {
hideWhenScrolling: true,
autoCapitalize: true,
placeholder: true,
placement: true,
allowToolbarIntegration: true,
obscureBackground: true,
hideNavigationBar: true,
cancelButtonText: true,
barTintColor: colorAttribute,
tintColor: colorAttribute,
textColor: colorAttribute,
autoFocus: true,
disableBackButtonOverride: true,
inputType: true,
hintTextColor: colorAttribute,
headerIconColor: colorAttribute,
shouldShowHintSearchIcon: true,
...ConditionallyIgnoredEventHandlers({
onSearchFocus: true,
onSearchBlur: true,
onSearchButtonPress: true,
onCancelButtonPress: true,
onChangeText: true,
onClose: true,
onOpen: true
})
}
};
const r53 = get("RNSSearchBar", () => c2765_2);
const r55 = {
blur: (a0) => {
dispatchCommand(a0, "blur", []);
},
focus: (a0) => {
dispatchCommand(a0, "focus", []);
},
clearText: (a0) => {
dispatchCommand(a0, "clearText", []);
},
toggleCancelButton: (a0, a1) => {
dispatchCommand(a0, "toggleCancelButton", [a1]);
},
setText: (a0, a1) => {
dispatchCommand(a0, "setText", [a1]);
},
cancelSearch: (a0) => {
dispatchCommand(a0, "cancelSearch", []);
}
};
export default r53;
export { c2765_2 as __INTERNAL_VIEW_CONFIG };
export { r55 as Commands };