decord/source/5382_useHeaderHeight.js
2026-07-21 06:55:02 +00:00

19 lines
530 B
JavaScript

// Module ID: 5382
// Function ID: 45938
// Name: useHeaderHeight
// Dependencies: []
// Exports: default
// Module 5382 (useHeaderHeight)
let closure_2 = importAll(dependencyMap[0]);
export default function useHeaderHeight() {
const context = React.useContext(importDefault(dependencyMap[1]));
if (undefined === context) {
const _Error = Error;
const error = new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?");
throw error;
} else {
return context;
}
};