Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: export BottomTabBarHeightCallbackContext (#10617)
**Motivation** Custom TabBarView required this to provide the correct height. ```tsx import { useCallback, useContext } from 'react'; import { createBottomTabNavigator, BottomTabBarHeightCallbackContext, // this is required. } from '@react-navigation/bottom-tabs'; const Tab = createBottomTabNavigator(); const BottomTabBar = () => { const reportHeight = useContext(BottomTabBarHeightCallbackContext); const handleLayout = useCallback(e => reportHeight(e.nativeEvent.layout.height), [reportHeight]); return ( <View onLayout={handleLayout}> {/* ... */} </View> ); }; const App = ( <Tab.Navigator tabBar={BottomTabBar}> {/* ... */} </Tab.Navigator> ); ```
- Loading branch information