react-native-screens
Version:
Native navigation primitives for your React Native app.
10 lines • 457 B
JavaScript
import * as React from 'react';
import AnimatedHeaderHeightContext from './AnimatedHeaderHeightContext';
export default 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 navigator with a header?");
}
return animatedValue;
}
//# sourceMappingURL=useAnimatedHeaderHeight.js.map