decord/source/modules/screen/useIsScreenLandscape.native.tsx
2026-08-15 05:55:55 +00:00

25 lines
894 B
TypeScript

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