-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
Current Behavior
- What code are you running and what is happening?
I am using createMaterialTopTabNavigator and I can only switch Tab's once using a tap, but I can switch Tab with the arrows on my laptop (using emulator). I have the same behavior on my mobile device.
I did a video to streamable showing the issue:
https://streamable.com/a8lax
Notice that when I'm pressing the buttons, the tabBarOnPress is being called, but for some reason defaultHandler is misbehaving.
- Include a screenshot if it makes sense.
Screenshot of how I'm using React Navigation:
https://cdn.discordapp.com/attachments/288388742929055765/557920242014093332/unknown.png
Expected Behavior
- What do you expect should be happening?
I was expecting to be able to switch Tab's at will when tapping the buttons.
How to reproduce
Repository: https://github.com/carlosdamiao/RNBottomBar
Steps:
- Clone Repository
- run: npm install
- go to android folder
- run: gradlew clean <---- IMPORTANT: I had to do this to run the project
- go back to root
- react-native run-android
NOTE: Didn't try in iOS
In-App:
- Press "Sign in" button
- Change tabs
Your Environment
software | version |
---|---|
react-navigation 3.5.1 | |
react-native 0.59.1 | |
node 10.13.0 | |
npm or yarn npm 6.4.1 |
Previous Environment
I have the exact same code running on a project with this environment:
software | version |
---|---|
react-navigation 3.0.9 | |
react-native 0.58.4 | |
node 10.13.0 | |
npm or yarn npm 6.4.1 |
That's why I think there might be some problem with react-navigation 3.5.1
PS: Anything else needed just ask, please. Thanks!
peralmq and ofekby
Metadata
Metadata
Assignees
Labels
No labels