decord/source/modules/chat_input/native/useShouldUseFabricChatInput.tsx
2026-07-25 08:10:48 +00:00

44 lines
1.5 KiB
TypeScript

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