2026-07-23 10:11:24 +00:00
|
|
|
// Module ID: 5114
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 44390
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useHeaderHeight
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [31, 5113]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
// Module 5114 (useHeaderHeight)
|
|
|
|
|
import result from "result";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useHeaderHeight() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const context = React.useContext(importDefault(5113));
|
2026-07-20 16:05:17 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
};
|