Skip to content

Releases: drash-course/react-navigation

Hideable tabs with BACK action consumption fix for TabRouter

27 Mar 08:52
Compare
Choose a tag to compare
hidden-tabs-backfix

fixed BACK action consumption when TabRouter is not back eligible

Merged upstream v1.5.0

08 Mar 12:36
Compare
Choose a tag to compare

Merged upstream v1.5.0 release into the feature branch

Feat hideable tabs in TabBar

30 Jan 13:29
Compare
Choose a tag to compare

In this fork of react-navigation (1.0.0-beta.27), tabs created in a TabNavigator can now be hidden from the TabBar by setting the { hiddenTabs: ['MyTab'] } config.

To hide a tab by default, you can write:

const tabNav = TabNavigator({
  FirstTab: { screen: firstScreen },
  SomeTab: { screen: secondScreen },
}, {
  hiddenTabs: ['SomeTab']
});

Hidden tabs can be made visible again by dispatching the showTab action, like so:

this.props.navigation.dispatch(
  NavigationActions.showTab({ tabRouteName: 'SomeTab' })
);

Tabs can also be hidden programatically with the hideTabaction:

this.props.navigation.dispatch(
  NavigationActions.hideTab({ tabRouteName: 'SomeTab' })
);