decord/source/modules/screen/useIsScreenLandscape.native.tsx
2026-08-08 06:10:11 +00:00

25 lines
894 B
TypeScript

// Module ID: 4849
// Function ID: 4850
// Name: getIsScreenLandscape
// Dependencies: [19, 1475, 1477, 2]
// Exports: getIsScreenLandscape, useIsScreenLandscape
// Module 4849 (getIsScreenLandscape)
import noop from "noop";
import getDimensionsStoreStateForEntry from "getDimensionsStoreStateForEntry";
const require = arg1;
const result = require("context").fileFinishedImporting("modules/screen/useIsScreenLandscape.native.tsx");
export const getIsScreenLandscape = function getIsScreenLandscape() {
let str = arg0;
if (arg0 === undefined) {
str = "main";
}
return state.getState().byAppEntry[str].screenIsLandscape;
};
export const useIsScreenLandscape = function useIsScreenLandscape() {
appEntryKey = appEntryKey(1477).useAppEntryKey();
const items = [appEntryKey];
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
};