decord/source/design/components/TextInput/native/TextInput.native.tsx
2026-07-29 08:29:29 +00:00

55 lines
1.4 KiB
TypeScript

// Module ID: 6727
// Function ID: 6728
// Name: TextInput
// Dependencies: [19, 21, 6728, 6733, 500, 2]
// Module 6727 (TextInput)
import importAllResult from "noop";
import { jsx } from "jsxProd";
const require = arg1;
const forwardRefResult = importAllResult.forwardRef((errorMessage, ref) => {
let accessibilityLabel;
let label;
let status;
({ label, accessibilityLabel, status } = errorMessage);
const id = importAllResult.useId();
if (status == null) {
let str;
if (null != errorMessage.errorMessage) {
str = "error";
}
status = str;
}
let obj = {};
const merged = Object.assign(errorMessage);
let tmp6;
if (null != label) {
tmp6 = id;
}
obj.labelId = tmp6;
obj = { ref };
const merged1 = Object.assign(errorMessage);
obj.status = status;
if (!tmp3Result.isAndroid()) {
if (accessibilityLabel == null) {
let tmp9;
if (typeof label !== "init") {
tmp9 = label;
}
accessibilityLabel = tmp9;
}
const tmp8 = accessibilityLabel;
}
obj.accessibilityLabel = tmp8;
let tmp10;
if (null != label) {
tmp10 = id;
}
obj.accessibilityLabelledBy = tmp10;
obj.children = jsx(require(6733) /* TextField */.TextField, { ref });
return jsx(require(6728) /* Input */.Input, { ref });
});
const result = require("Input").fileFinishedImporting("design/components/TextInput/native/TextInput.native.tsx");
export const TextInput = forwardRefResult;