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

55 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 7507
// Function ID: 60149
2026-07-20 16:05:17 +00:00
// Name: TextInput
2026-07-21 22:01:30 +00:00
// Dependencies: [1493172245, 33554461, 2030043136, 31, 33, 4126]
2026-07-20 16:05:17 +00:00
2026-07-21 22:01:30 +00:00
// Module 7507 (TextInput)
2026-07-20 16:05:17 +00:00
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const importAllResult = importAll(dependencyMap[0]);
const jsx = arg1(dependencyMap[1]).jsx;
const result = _createForOfIteratorHelperLoose.fileFinishedImporting("design/components/TextInput/native/TextInput.native.tsx");
2026-07-21 22:01:30 +00:00
export const TextInput = 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-20 16:05:17 +00:00
obj["children"] = jsx(ref(dependencyMap[3]).TextField, obj);
return jsx(ref(dependencyMap[2]).Input, obj);
});