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

26 lines
899 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4664
2026-07-27 11:26:19 +00:00
// Function ID: 40418
2026-07-20 16:05:17 +00:00
// Name: getIsScreenLandscape
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 1451, 1453, 2]
2026-07-20 16:05:17 +00:00
// Exports: getIsScreenLandscape, useIsScreenLandscape
2026-07-25 08:10:48 +00:00
// Module 4664 (getIsScreenLandscape)
2026-07-23 10:11:24 +00:00
import result from "result";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
const result = require("context").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-07-23 10:11:24 +00:00
appEntryKey = appEntryKey(1453).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
};