decord/source/design/components/TextInput/native/TextInput.native.tsx
2026-07-23 10:11:24 +00:00

55 lines
1.4 KiB
TypeScript

// Module ID: 7512
// Function ID: 60194
// Name: TextInput
// Dependencies: [31, 33, 7505, 5773, 477, 2]
// Module 7512 (TextInput)
import importAllResult from "result";
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 (null == status) {
let str;
if (null != errorMessage.errorMessage) {
str = "error";
}
status = str;
}
let obj = {};
const merged = Object.assign(errorMessage);
let tmp4;
if (null != label) {
tmp4 = id;
}
obj["labelId"] = tmp4;
obj = { ref };
const merged1 = Object.assign(errorMessage);
obj["status"] = status;
if (!obj3.isAndroid()) {
if (null == accessibilityLabel) {
let tmp8;
if ("string" === typeof label) {
tmp8 = label;
}
accessibilityLabel = tmp8;
}
const tmp7 = accessibilityLabel;
}
obj["accessibilityLabel"] = tmp7;
let tmp9;
if (null != label) {
tmp9 = id;
}
obj["accessibilityLabelledBy"] = tmp9;
obj["children"] = jsx(require(5773) /* TextField */.TextField, { ref });
return jsx(require(7505) /* Input */.Input, { ref });
});
const result = require("Input").fileFinishedImporting("design/components/TextInput/native/TextInput.native.tsx");
export const TextInput = forwardRefResult;