decord/source/design/components/TextInput/native/TextInput.native.tsx

56 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6670
2026-07-27 11:26:19 +00:00
// Function ID: 58964
2026-07-20 16:05:17 +00:00
// Name: TextInput
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 6671, 6676, 477, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 6670 (TextInput)
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import { jsx } from "jsxProd";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
const forwardRefResult = importAllResult.forwardRef((errorMessage, ref) => {
2026-07-20 16:05:17 +00:00
let accessibilityLabel;
let label;
let status;
2026-07-21 22:01:30 +00:00
({ label, accessibilityLabel, status } = errorMessage);
2026-07-20 16:05:17 +00:00
const id = importAllResult.useId();
if (null == status) {
2026-07-21 22:01:30 +00:00
let str;
if (null != errorMessage.errorMessage) {
str = "error";
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
status = str;
2026-07-20 16:05:17 +00:00
}
let obj = {};
2026-07-21 22:01:30 +00:00
const merged = Object.assign(errorMessage);
let tmp4;
2026-07-20 16:05:17 +00:00
if (null != label) {
2026-07-21 22:01:30 +00:00
tmp4 = id;
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
obj["labelId"] = tmp4;
2026-07-20 16:05:17 +00:00
obj = { ref };
2026-07-21 22:01:30 +00:00
const merged1 = Object.assign(errorMessage);
2026-07-20 16:05:17 +00:00
obj["status"] = status;
if (!obj3.isAndroid()) {
if (null == accessibilityLabel) {
2026-07-21 22:01:30 +00:00
let tmp8;
2026-07-20 16:05:17 +00:00
if ("string" === typeof label) {
2026-07-21 22:01:30 +00:00
tmp8 = label;
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
accessibilityLabel = tmp8;
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
const tmp7 = accessibilityLabel;
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
obj["accessibilityLabel"] = tmp7;
let tmp9;
2026-07-20 16:05:17 +00:00
if (null != label) {
2026-07-21 22:01:30 +00:00
tmp9 = id;
2026-07-20 16:05:17 +00:00
}
2026-07-21 22:01:30 +00:00
obj["accessibilityLabelledBy"] = tmp9;
2026-07-25 08:10:48 +00:00
obj["children"] = jsx(require(6676) /* TextField */.TextField, { ref });
return jsx(require(6671) /* Input */.Input, { ref });
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("Input").fileFinishedImporting("design/components/TextInput/native/TextInput.native.tsx");
export const TextInput = forwardRefResult;