decord/source/modules/chat_input/native/useShouldUseFabricChatInput.tsx

45 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 11102
// Function ID: 86326
2026-07-20 16:05:17 +00:00
// Name: resolveShouldUseFabric
2026-07-25 08:10:48 +00:00
// Dependencies: [477, 3995, 11103, 2]
2026-07-20 16:05:17 +00:00
// Exports: shouldUseFabricChatInput, useShouldUseFabricChatInput
2026-07-25 08:10:48 +00:00
// Module 11102 (resolveShouldUseFabric)
2026-07-20 16:05:17 +00:00
function resolveShouldUseFabric(enabled) {
2026-07-23 10:11:24 +00:00
if (null != closure_3) {
let tmp4 = closure_3;
} else {
const tmp3 = !require(477) /* set */.isAndroid();
tmp4 = !tmp3;
2026-07-20 16:05:17 +00:00
if (tmp3) {
2026-07-25 08:10:48 +00:00
const obj2 = require(3995) /* isFabric */;
tmp4 = require(3995) /* isFabric */.isIosFabric() && enabled;
const tmp7 = require(3995) /* isFabric */.isIosFabric() && enabled;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
closure_3 = tmp4;
const obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
}
return tmp4;
}
2026-07-23 10:11:24 +00:00
const result = require("apexExperiment").fileFinishedImporting("modules/chat_input/native/useShouldUseFabricChatInput.tsx");
2026-07-20 16:05:17 +00:00
export const useShouldUseFabricChatInput = function useShouldUseFabricChatInput() {
2026-07-25 08:10:48 +00:00
return resolveShouldUseFabric(importDefault(11103).useConfig({ location: "chat_input" }).enabled);
2026-07-20 16:05:17 +00:00
};
export const shouldUseFabricChatInput = function shouldUseFabricChatInput() {
if (null != closure_3) {
let tmpResult = closure_3;
} else {
2026-07-23 10:11:24 +00:00
let obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
let enabled = !obj.isAndroid();
if (enabled) {
obj = { location: "chat_input" };
2026-07-25 08:10:48 +00:00
enabled = importDefault(11103).getConfig(obj).enabled;
const obj2 = importDefault(11103);
2026-07-20 16:05:17 +00:00
}
tmpResult = resolveShouldUseFabric(enabled);
const tmp = resolveShouldUseFabric;
}
return tmpResult;
};