Skip to content

Only able to change tabs once #5713

@carlosdamiao

Description

@carlosdamiao

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.

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions