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

26 lines
893 B
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 5071
// Function ID: 5072
2026-07-20 16:05:17 +00:00
// Name: getIsScreenLandscape
2026-08-31 15:47:37 +00:00
// Dependencies: [19, 1494, 1496, 2]
2026-07-20 16:05:17 +00:00
// Exports: getIsScreenLandscape, useIsScreenLandscape
2026-09-01 10:26:29 +00:00
// Module 5071 (getIsScreenLandscape)
2026-08-24 06:08:38 +00:00
import closure_2 from "noop" /* 19 */;
2026-08-31 15:47:37 +00:00
import closure_3 from "getDimensionsStoreStateForEntry" /* 1494 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").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 state.getState().byAppEntry[str].screenIsLandscape;
};
export const useIsScreenLandscape = function useIsScreenLandscape() {
2026-08-31 15:47:37 +00:00
appEntryKey = appEntryKey(1496).useAppEntryKey();
2026-07-20 16:05:17 +00:00
const items = [appEntryKey];
2026-07-23 10:11:24 +00:00
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
2026-07-20 16:05:17 +00:00
};