fix: avoid blink when switching tab screens

This commit is contained in:
Satyajit Sahoo
2021-08-07 15:05:55 +02:00
parent 0f5868f64d
commit 40dcbcf2fa

View File

@@ -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}
>