@react-navigation/stack
Version:
Stack navigator component for iOS and Android with animated transitions and gestures
12 lines (10 loc) • 386 B
JavaScript
import * as React from 'react';
import HeaderHeightContext from './HeaderHeightContext';
export default function useFloatingHeaderHeight() {
const height = React.useContext(HeaderHeightContext);
if (height === undefined) {
throw new Error("Couldn't find the header height. Are you inside a screen in Stack?");
}
return height;
}
//# sourceMappingURL=useHeaderHeight.js.map