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

28 lines
975 B
TypeScript
Raw Normal View History

// Module ID: 5140
// Function ID: 5141
// Name: useIsScreenLandscape
// Dependencies: [19, 1478, 1480, 2]
2026-07-20 16:05:17 +00:00
// Exports: getIsScreenLandscape, useIsScreenLandscape
// Module 5140 (useIsScreenLandscape)
import AppEntryKeyContext from "AppEntryKeyContext" /* 1480 */;
import noop from "module_19" /* 19 */;
import DimensionsStore from "DimensionsStore" /* 1478 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
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
};
export const useIsScreenLandscape = function useIsScreenLandscape() {
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
2026-07-20 16:05:17 +00:00
const items = [appEntryKey];
return DimensionsStore(noop.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
2026-07-20 16:05:17 +00:00
};