We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2648047 commit 3d4db5fCopy full SHA for 3d4db5f
src/TabView.tsx
@@ -271,6 +271,7 @@ const TabView = <Route extends BaseRoute>({
271
}
272
273
const focused = route.key === focusedKey;
274
+ const opacity = focused ? 1 : 0;
275
const zIndex = focused ? 0 : -1;
276
277
return (
@@ -282,7 +283,7 @@ const TabView = <Route extends BaseRoute>({
282
283
importantForAccessibility={focused ? 'auto' : 'no-hide-descendants'}
284
style={
285
Platform.OS === 'android'
- ? [StyleSheet.absoluteFill, { zIndex }]
286
+ ? [StyleSheet.absoluteFill, { zIndex, opacity }]
287
: styles.fullWidth
288
289
>
0 commit comments