Skip to content

Commit

Permalink
fix: fix tab bar height including extra bottom inset. closes #9573
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed May 14, 2021
1 parent b4c1b97 commit c99d127
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/bottom-tabs/src/views/BottomTabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,7 @@ export default function BottomTabBar({
const handleLayout = (e: LayoutChangeEvent) => {
const { height, width } = e.nativeEvent.layout;

const topBorderWidth =
// @ts-ignore
StyleSheet.flatten([styles.tabBar, style])?.borderTopWidth;

onHeightChange?.(
height +
paddingBottom +
(typeof topBorderWidth === 'number' ? topBorderWidth : 0)
);
onHeightChange?.(height);

setLayout((layout) => {
if (height === layout.height && width === layout.width) {
Expand Down

0 comments on commit c99d127

Please sign in to comment.