decord/stable/source/modules/screen/useIsScreenLandscape.native.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

27 lines
975 B
TypeScript

// Module ID: 5374
// Function ID: 5375
// Name: useIsScreenLandscape
// Dependencies: [19, 1479, 1481, 2]
// Exports: getIsScreenLandscape, useIsScreenLandscape
// Module 5374 (useIsScreenLandscape)
import AppEntryKeyContext from "AppEntryKeyContext" /* 1481 */;
import noop from "module_19" /* 19 */;
import DimensionsStore from "DimensionsStore" /* 1479 */;
require = fn;
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 = function useIsScreenLandscape() {
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
const items = [appEntryKey];
return DimensionsStore(noop.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
};