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

56 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 7835
// Function ID: 7836
2026-07-20 16:05:17 +00:00
// Name: TextInput
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 21, 7836, 6036, 500, 2]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 7835 (TextInput)
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
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();
2026-07-29 08:29:29 +00:00
if (status == null) {
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);
2026-07-29 08:29:29 +00:00
let tmp6;
2026-07-20 16:05:17 +00:00
if (null != label) {
2026-07-29 08:29:29 +00:00
tmp6 = id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.labelId = tmp6;
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-29 08:29:29 +00:00
obj.status = status;
if (!tmp3Result.isAndroid()) {
if (accessibilityLabel == null) {
let tmp9;
2026-08-04 21:03:28 +00:00
if (typeof label === "string") {
2026-07-29 08:29:29 +00:00
tmp9 = label;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
accessibilityLabel = tmp9;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const tmp8 = accessibilityLabel;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.accessibilityLabel = tmp8;
let tmp10;
2026-07-20 16:05:17 +00:00
if (null != label) {
2026-07-29 08:29:29 +00:00
tmp10 = id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.accessibilityLabelledBy = tmp10;
2026-08-13 07:00:46 +00:00
obj.children = jsx(require(6036) /* TextField */.TextField, { ref });
return jsx(require(7836) /* 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;