Files
Fluxup_PAP/node_modules/@react-navigation/elements/lib/module/Header/useHeaderHeight.js
2026-03-10 16:18:05 +00:00

12 lines
410 B
JavaScript

"use strict";
import * as React from 'react';
import { HeaderHeightContext } from "./HeaderHeightContext.js";
export function useHeaderHeight() {
const height = React.useContext(HeaderHeightContext);
if (height === undefined) {
throw new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?");
}
return height;
}
//# sourceMappingURL=useHeaderHeight.js.map