decord/source/modules/screen/useIsScreenLandscape.native.tsx
2026-09-02 09:53:35 +00:00

25 lines
893 B
TypeScript

// Module ID: 5079
// Function ID: 5080
// Name: getIsScreenLandscape
// Dependencies: [19, 1493, 1495, 2]
// Exports: getIsScreenLandscape, useIsScreenLandscape
// Module 5079 (getIsScreenLandscape)
import closure_2 from "noop" /* 19 */;
import closure_3 from "getDimensionsStoreStateForEntry" /* 1493 */;
const require = arg1;
const result = require("set").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(1495).useAppEntryKey();
const items = [appEntryKey];
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
};