Skip to content

Commit

Permalink
fix: avoid blink when switching tab screens
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 7, 2021
1 parent 0f5868f commit 40dcbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bottom-tabs/src/views/BottomTabView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default function BottomTabView(props: Props) {
return (
<MaybeScreen
key={route.key}
style={StyleSheet.absoluteFill}
style={[StyleSheet.absoluteFill, { zIndex: isFocused ? 0 : -1 }]}
visible={isFocused}
enabled={detachInactiveScreens}
>
Expand Down

0 comments on commit 40dcbcf

Please sign in to comment.