12 lines
478 B
JavaScript
12 lines
478 B
JavaScript
"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
|