-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
🚨 CRITICAL BUG REPORT: React Navigation Bottom Tabs Rendering Multiple Tab Components Simultaneously #12806
Description
Current behavior
React Navigation bottom tabs are incorrectly rendering multiple tab components simultaneously, causing visual layering issues where elements from inactive tabs appear behind active tabs.
Environment
React Native Version: 0.80.1
React Navigation Bottom Tabs: ^7.4.2
React Navigation Native: ^7.1.14
React Navigation Stack: ^7.4.2
Platform: iOS
Node Version: >=18
I have created a repo to reproduce the issue but it's not exactly producing it the same way as shown in images. Instead, the element inspector shows the inactive tab's components when trying to select an element on the first tab.
Expected behavior
The inactive tab's component shouldn't be visible with transparent background on active tab. Neither should the inactive tab's components should be shown or selected in element inspector.
Reproduction
https://github.com/adey69/bottom-tabs-render-issue
Platform
- Android
- iOS
- Web
- Windows
- MacOS
Packages
- @react-navigation/bottom-tabs
- @react-navigation/drawer
- @react-navigation/material-top-tabs
- @react-navigation/stack
- @react-navigation/native-stack
- react-native-drawer-layout
- react-native-tab-view
Environment
I've removed the packages that I don't use
| package | version |
|---|---|
| @react-navigation/native | 7.1.18 |
| @react-navigation/bottom-tabs | 7.5.0 |
| @react-navigation/material-top-tabs | 7.3.9 |
| @react-navigation/stack | 7.5.0 |
| react-native-screens | 4.18.0 |
| react-native-safe-area-context | 5.6.1 |
| react-native-gesture-handler | 2.29.0 |
| react-native-reanimated | 4.1.3 |
| react-native | 0.80.1 |
| node | 22.16.0 |
| yarn | 1.22.22 |