decord/source/modules/screen/useIsScreenLandscape.native.tsx
2026-08-13 07:00:46 +00:00

25 lines
894 B
TypeScript

// Module ID: 4890
// Function ID: 4891
// Name: getIsScreenLandscape
// Dependencies: [19, 1494, 1496, 2]
// Exports: getIsScreenLandscape, useIsScreenLandscape
// Module 4890 (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(1496).useAppEntryKey();
const items = [appEntryKey];
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
};