Skip to content

Commit 7eb4fad

Browse files
fix: android bottom tabs crash fix when used with screens
Signed-off-by: Maciej Budziński <[email protected]>
1 parent 9162a1f commit 7eb4fad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/BottomNavigation/BottomNavigation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ const BottomNavigation = <Route extends BaseRoute>({
548548
removeClippedSubviews={
549549
// On iOS, set removeClippedSubviews to true only when not focused
550550
// This is an workaround for a bug where the clipped view never re-appears
551-
Platform.OS === 'ios' ? navigationState.index !== index : true
551+
// On Android, it is disabled until https://github.com/software-mansion/react-native-screens/issues/2491 is fixed
552+
Platform.OS === 'ios' ? navigationState.index !== index : false
552553
}
553554
>
554555
<Animated.View

0 commit comments

Comments
 (0)