UNPKG

@react-navigation/native-stack

Version:
12 lines (11 loc) 478 B
"use strict"; import * as React from 'react'; export const AnimatedHeaderHeightContext = /*#__PURE__*/React.createContext(undefined); export function useAnimatedHeaderHeight() { const animatedValue = React.useContext(AnimatedHeaderHeightContext); if (animatedValue === undefined) { throw new Error("Couldn't find the header height. Are you inside a screen in a native stack navigator?"); } return animatedValue; } //# sourceMappingURL=useAnimatedHeaderHeight.js.map