Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
21 lines
602 B
JavaScript
21 lines
602 B
JavaScript
// Module ID: 5753
|
|
// Function ID: 5754
|
|
// Dependencies: [19, 5752]
|
|
// Exports: useHeaderHeight
|
|
|
|
// Module 5753
|
|
import HeaderHeightContext from "HeaderHeightContext" /* 5752 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useHeaderHeight = function useHeaderHeight() {
|
|
const context = noop.useContext(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;
|
|
}
|
|
};
|