decord/source/modules/screen/native/useBaseAppContainerDimensions.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

32 lines
1.2 KiB
TypeScript

// Module ID: 4422
// Function ID: 4423
// Name: useBaseAppContainerDimensions
// Dependencies: [19, 1477, 1611, 2]
// Exports: default, getBaseAppContainerDimensions
// Module 4422 (useBaseAppContainerDimensions)
import useWindowDimensions from "useWindowDimensions" /* 1477 */;
import useSafeAreaInsets from "useSafeAreaInsets" /* 1611 */;
import closure_3 from "noop" /* 19 */;
require = arg1;
const result = require("set").fileFinishedImporting("modules/screen/native/useBaseAppContainerDimensions.tsx");
export default function useBaseAppContainerDimensions() {
const size = height(left[1])();
const width = size.width;
height = size.height;
const rect = height(left[2])();
left = rect.left;
const right = rect.right;
const items = [width, height, left, right];
return right.useMemo(() => ({ width: width - left - right, height }), items);
};
export const getBaseAppContainerDimensions = function getBaseAppContainerDimensions() {
let obj = useWindowDimensions;
const windowDimensions = obj.getWindowDimensions();
({ width, height } = windowDimensions);
const rect = useSafeAreaInsets.getSafeAreaInsets();
obj = { width: width - rect.left - rect.right, height };
return obj;
};