GT2/Ejectable/node_modules/@react-navigation/bottom-tabs/lib/module/utils/useBottomTabBarHeight.js

12 lines
439 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
import * as React from 'react';
import BottomTabBarHeightContext from './BottomTabBarHeightContext';
export default function useFloatingBottomTabBarHeight() {
const height = React.useContext(BottomTabBarHeightContext);
if (height === undefined) {
throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?");
}
return height;
}
//# sourceMappingURL=useBottomTabBarHeight.js.map