diff --git a/src/TabView.tsx b/src/TabView.tsx index 37792fff..9d14c8b0 100644 --- a/src/TabView.tsx +++ b/src/TabView.tsx @@ -271,6 +271,7 @@ const TabView = ({ } const focused = route.key === focusedKey; + const opacity = focused ? 1 : 0; const zIndex = focused ? 0 : -1; return ( @@ -282,7 +283,7 @@ const TabView = ({ importantForAccessibility={focused ? 'auto' : 'no-hide-descendants'} style={ Platform.OS === 'android' - ? [StyleSheet.absoluteFill, { zIndex }] + ? [StyleSheet.absoluteFill, { zIndex, opacity }] : styles.fullWidth } >