Skip to content

Commit

Permalink
fix: BottomNavigation clickthrough in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperro committed Feb 11, 2021
1 parent e5c0c77 commit 1242edf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/BottomNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ const BottomNavigation = ({
outputRange: [0, FAR_FAR_AWAY],
});

const display =
Platform.OS === 'web' ? (focused ? 'flex' : 'none') : null;

return (
<Animated.View
key={route.key}
Expand All @@ -618,7 +621,7 @@ const BottomNavigation = ({
importantForAccessibility={
focused ? 'auto' : 'no-hide-descendants'
}
style={[StyleSheet.absoluteFill, { opacity }]}
style={[StyleSheet.absoluteFill, { opacity }, { display }]}
collapsable={false}
removeClippedSubviews={
// On iOS, set removeClippedSubviews to true only when not focused
Expand Down

0 comments on commit 1242edf

Please sign in to comment.