amis-rpc-design/node_modules/@react-navigation/elements/lib/module/Header/useHeaderHeight.js
2023-10-07 19:42:30 +08:00

10 lines
392 B
JavaScript

import * as React from 'react';
import { HeaderHeightContext } from './HeaderHeightContext';
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