Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
// Module ID: 5376
|
|
// Function ID: 5377
|
|
// Name: useIsScreenLandscape
|
|
// Dependencies: [19, 1483, 558, 568, 1485, 2]
|
|
// Exports: getIsScreenLandscape
|
|
|
|
// Module 5376 (useIsScreenLandscape)
|
|
import c from "c" /* 568 */;
|
|
import AppEntryKeyContext from "AppEntryKeyContext" /* 1485 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import DimensionsStore from "DimensionsStore" /* 1483 */;
|
|
|
|
require = fn;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/screen/useIsScreenLandscape.native.tsx");
|
|
|
|
export const getIsScreenLandscape = function getIsScreenLandscape() {
|
|
let str = arg0;
|
|
if (arg0 === undefined) {
|
|
str = "main";
|
|
}
|
|
return DimensionsStore.getState().byAppEntry[str].screenIsLandscape;
|
|
};
|
|
export const useIsScreenLandscape = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
const cResult = c.c(2);
|
|
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
|
|
if (cResult[0] !== appEntryKey) {
|
|
const fn = function n(arg0) {
|
|
return arg0.byAppEntry[appEntryKey].screenIsLandscape;
|
|
};
|
|
cResult[0] = appEntryKey;
|
|
cResult[1] = fn;
|
|
let tmp3 = fn;
|
|
} else {
|
|
tmp3 = cResult[1];
|
|
}
|
|
return DimensionsStore(tmp3);
|
|
}) : (() => {
|
|
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
|
|
const items = [appEntryKey];
|
|
return DimensionsStore(noop.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
|
|
});
|