Skip to content

Commit

Permalink
fix isTooltipAllowed timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Jan 23, 2025
1 parent 65838b5 commit c128d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navigation/TopLevelBottomTabBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ function TopLevelBottomTabBar() {
}, [shouldDisplayTopLevelBottomTabBar]);

return (
<View style={styles.topLevelBottomTabBar(shouldDisplayTopLevelBottomTabBar && isAfterClosingTransition, shouldUseNarrowLayout, paddingBottom)}>
<View style={styles.topLevelBottomTabBar(shouldDisplayTopLevelBottomTabBar || isAfterClosingTransition, shouldUseNarrowLayout, paddingBottom)}>
{/* We are not rendering BottomTabBar conditionally for two reasons
1. It's faster to hide/show it than mount a new when needed.
2. We need to hide tooltips as well if they were displayed. */}
<BottomTabBar
selectedTab={selectedTab}
isTooltipAllowed={shouldDisplayTopLevelBottomTabBar}
isTooltipAllowed={shouldDisplayTopLevelBottomTabBar || isAfterClosingTransition}
/>
</View>
);
Expand Down

0 comments on commit c128d35

Please sign in to comment.