21 lines
592 B
JavaScript
21 lines
592 B
JavaScript
// Module ID: 5379
|
|
// Function ID: 5380
|
|
// Name: useHeaderHeight
|
|
// Dependencies: [19, 5378]
|
|
// Exports: useHeaderHeight
|
|
|
|
// Module 5379 (useHeaderHeight)
|
|
import noop from "noop";
|
|
|
|
const require = arg1;
|
|
|
|
export const useHeaderHeight = function useHeaderHeight() {
|
|
const context = React.useContext(require(5378) /* HeaderHeightContext */.HeaderHeightContext);
|
|
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;
|
|
}
|
|
};
|