Files
Fluxup_PAP/node_modules/@react-navigation/native-stack/lib/module/utils/useAnimatedHeaderHeight.js
2026-03-10 16:18:05 +00:00

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