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

22 lines
718 B
TypeScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 11307
// Function ID: 11308
2026-07-20 16:05:17 +00:00
// Name: subscribeToWindowDimensions
2026-07-29 08:29:29 +00:00
// Dependencies: [1475, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-07 06:50:47 +00:00
// Module 11307 (subscribeToWindowDimensions)
2026-07-29 08:29:29 +00:00
import getDimensionsStoreStateForEntry from "getDimensionsStoreStateForEntry";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/screen/subscribeToWindowDimensions.native.tsx");
2026-07-20 16:05:17 +00:00
export default function subscribeToWindowDimensions(arg0) {
2026-07-29 08:29:29 +00:00
let getDimensionsStoreStateForEntry = arg0;
2026-07-20 16:05:17 +00:00
let str = arg1;
if (arg1 === undefined) {
str = "main";
}
2026-07-29 08:29:29 +00:00
return getDimensionsStoreStateForEntry.subscribe((arg0) => {
2026-07-23 10:11:24 +00:00
callback(arg0.byAppEntry[str].windowDimensions, arg0.byAppEntry[str].windowDimensionsIgnoringKeyboard);
2026-07-20 16:05:17 +00:00
});
};