fix: blink while switching screens (#9705)

Fix to prevent showing blank screen while screens switching process.
Currently we can see it using dark background color in screens.
This fix also makes clear work with eager loading of screens (`detachInactiveScreens={false}` `lazy={false}`).
This commit is contained in:
Alexander
2021-08-07 16:03:16 +03:00
committed by GitHub
parent dfd0cc78fe
commit 99735e1b73

View File

@@ -225,7 +225,7 @@ function DrawerViewBase({
return (
<MaybeScreen
key={route.key}
style={[StyleSheet.absoluteFill, { opacity: isFocused ? 1 : 0 }]}
style={[StyleSheet.absoluteFill, { zIndex: isFocused ? 0 : -1 }]}
visible={isFocused}
enabled={detachInactiveScreens}
>