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
Hardware Back Button issue on a Hidden tabBar Screen #3498
Comments
Why do you have |
Try this
|
Thanks @iloo123 for reply . I want to achieve something like this : Which I think better be achieved by Custom TabBar . But I still Think Back Button on Hidden TabBar Screen is not Working ideally . |
Try this with in the screen. I'm sure this will work
|
thanks for the reply! |
So This is How I solved. 1) Changing Route Model. Instead of using that particular screen in TabNavigator. I used it as a screen in the parent Stack Navigator which contains the TabNavigator. so the route looks like Parent Stack 2 ) Controlling TabBar middle Tab to operate differently . This can be Done by using tabBarComponent in TabNavigatorConfig to control Navigation
I Think this is the right way to do it. Anyways I found that here |
I just have a Simple TabNavigator, In which one of the Tabs navigate to a screen with Hidden TabBar . which i achieved using this :
Trip: { screen:Trip, navigationOptions:{ tabBarLabel:'Start', tabBarVisible: false } }
Now When i press hardware Back Button it crashes with :
TypeError: undefined is not an object (evaluating '_this3._component.setNativeProps')
and if it make it Visible, it works just fine i.e navigates to the first Tab Screen.
The text was updated successfully, but these errors were encountered: