react-native-web createMaterialBottomTabNavigator delivers clicks to background tabs
See original GitHub issueCurrent behaviour
- I have a material bottom tab navigator where each tab contains a stack of screens
- on mobile it works fine
- if I use a non-Paper bottom tab
createBottomTabNavigator, it works fine on the - with a Paper bottom tab, on react-native-web, once they have been rendered once, background tabs get clicks
Expected behaviour
- I expect only the frontmost tab to get clicks
Code sample
Screenshots (if applicable)
What have you tried
Your Environment
| software | version |
|---|---|
| ios or android | web |
| react-native | 0.62.2 |
| react-native-paper | 4.4.0 (which contains a recent fix for getting tabs to show up the first time the user clicks to them) |
| node | 10.17.0 |
| yarn | 1.22.10 |
| react-native-vector-icons | 6.6.0 |
| expo sdk | no Expo |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Material Bottom Tabs Navigator
A material-design themed tab bar on the bottom of the screen that lets you switch between different routes with animation. Routes are lazily...
Read more >How to create Material Bottom Tab Navigator in React Native
How to create Material Bottom Tab Navigator in React Native ? ; Step 1: Open your terminal and install expo-cli by the following...
Read more >React navigation 5 hide tab bar from stack navigator
I wanted to know how to hide the bottom tab bar from a specific screen inside my stack navigator that is nested on...
Read more >Bottom Tab Navigator - Thunkable Docs
Navigate to different screens using a bottom tab navigator. ... for styling your Bottom Tab Navigator, such as changing the background color or...
Read more >Custom Bottom Tab Navigator in React Native - YouTube
In this tutorial, you'll learn how to create a custom bottom tab navigator in react native. I have created this custom designed bottom...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@paour @jasperro I am closing this for now. Please reopen if the issue still occurs and please provide a repro 🙏 .
It seems that in switching a tab, the code only changes the opacity of the current screen to 0 and the active one 1. This means everything is still being rendered, just totally transparently. Replacing this with display: none and display:flex removes the issue, I will see if I can make a pull request.