decord/alpha/source/modules/screen/useIsScreenLandscape.native.tsx

48 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 8327
// Function ID: 8328
// Name: useIsScreenLandscape
2026-10-09 10:00:15 +00:00
// Dependencies: [19, 1498, 558, 576, 1500, 2]
2026-10-03 08:58:59 +00:00
// Exports: getIsScreenLandscape
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 8327 (useIsScreenLandscape)
2026-10-03 08:58:59 +00:00
import react2 from "react" /* 576 */;
2026-10-09 10:00:15 +00:00
import AppEntryKeyContext from "AppEntryKeyContext" /* 1500 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
2026-10-09 10:00:15 +00:00
import DimensionsStore from "DimensionsStore" /* 1498 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsScreenLandscape() {
2026-10-03 08:58:59 +00:00
let tmp3;
const obj = react2;
const cResult = obj.c(2);
const obj2 = AppEntryKeyContext;
const appEntryKey = obj2.useAppEntryKey();
if (cResult[0] !== appEntryKey) {
const fn = function n(arg0) {
return arg0.byAppEntry[appEntryKey].screenIsLandscape;
};
cResult[0] = appEntryKey;
cResult[1] = fn;
tmp3 = fn;
} else {
tmp3 = cResult[1];
}
return DimensionsStore(tmp3);
2026-10-08 09:57:35 +00:00
}) : (function useIsScreenLandscape() {
2026-10-03 08:58:59 +00:00
const obj = AppEntryKeyContext;
const appEntryKey = obj.useAppEntryKey();
const items = [appEntryKey];
return DimensionsStore(react.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
});
const result = size.fileFinishedImporting("modules/screen/useIsScreenLandscape.native.tsx");
2026-07-20 16:05:17 +00:00
export const getIsScreenLandscape = function getIsScreenLandscape() {
let str = arg0;
if (arg0 === undefined) {
str = "main";
}
return DimensionsStore.getState().byAppEntry[str].screenIsLandscape;
2026-07-20 16:05:17 +00:00
};
2026-10-03 08:58:59 +00:00
export const useIsScreenLandscape = tmp2;