New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When debugging on an android device the buttons do not work on the bottom tab navigator. #7883
Comments
I read the documentation. It works on an iOS physical device and also if I install the material bottom tab instead then that works so not sure you can blame it entirely on Chrome. With regard to safari as a debugger does that work the same with both iOS and Android. |
is VS Code uses same debugger , beacause i have same problem too. And how can i now debug my app if i cant switch between screens ? |
Is this only in android? |
didn't test on iOS |
Facing the same issue with react navigation 5 bottom tabs. The link shared explains issues related to timing. But here the navigation is not working at all. And no one would be able to debug without navigating. Please help with a solution. |
This comment has been minimized.
This comment has been minimized.
@michaelypes try to use 0.61.5 version of react-native, for me it is fixed the problem. |
also have this issue... only with debugger on for emulator. As soon as I stop debugging, nav works fine. |
I have this issue as well. Every button works except for bottom tab navigator! |
Solution (for me)This behaviour is related to this issue: So basically time of device and host machine are out of sync causing a press to appear to the device as a longPress and therefore not navigating. I resolved it by disabling and reenabling the time synchronisation in my android devices settings You can see if your hosts and devices date & time are out of sync in linux by calling AftermathSo i had this problem as well. Tried to replace the tabBarButton component with a custom one in order to see what happens and realized, that in debug mode the onPress event of the touchable never gets fired, while in production mode it does. Searching google finally revealed the answer to me and after i tested it the tabBarButton component really fires its longPress event instead, as described in the issue above. Syncing device time and behold - several days of developing without debugger and hours of research and the problem was resolved in 10 seconds. BottomTabNavigation Works again for me. Hope it helps |
Doesn't work for me. There's always atleast 1 second difference. |
Same for me. One second difference. I'm using a physical device. $ adb shell "date" && date |
Turning "Use network-provided time" in the Date & Time settings off and on fixed it for me |
Upgrading from react-native from 0.62.2 to 0.63.3 fixed it for me... |
Had same issue. Switching Automatic Date & Time off and on on my physical device didn't fix this. I noticed the bug was on my emulator as well, so what I did was switch the automatic time on my machine (windows 10) off and on. It worked instantly! |
Not solve for me . I am facing this problem when debugger is open. But createMaterialBottomTabNavigator has no issue. |
Simpley restert both the devices. it will solve your time issue and so the debugger problem also. |
For me, Changing the browser for debugging from |
I managed to fix by triggering the Android Emulator to use the date from the host (Mac OS):
|
This is crazy. It works! Thank you |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
it doesn't work for me. though i set this, |
Solution For me @tobikl1 so, I could catch that and just act like tabPress.
if you use 'tabLongPress' feature, you need to consider more. |
What the hell!!!?? It worked 😂 |
I fixed this by running this in powershell (windows)
|
Current Behavior
When running the app in normal mode the buttons on the bottom tab work and change screens and the selected tab is highlighted. When you shake the phone and enable debugging the buttons stop working and you cannot change screen.
Expected Behavior
That the bottom navigator works the same in both normal mode and debugging mode.
How to reproduce
I have created a basic repo which demonstrates the problem exactly with all the latest libraries.
Even did it with the new react-native version as it came out today although it does the same on the previous version.
Git repo
https://github.com/michaelypes/react_navigation_bottom_tab_bug
Your Environment
The text was updated successfully, but these errors were encountered: