You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
396 B
16 lines
396 B
import * as React from 'react';
|
|
|
|
import BottomTabBarHeightContext from './BottomTabBarHeightContext';
|
|
|
|
export default function useBottomTabBarHeight() {
|
|
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;
|
|
}
|