okwasniewski / react-native-bottom-tabs

Native Bottom Tabs for React Native
https://www.npmjs.com/package/react-native-bottom-tabs
MIT License
284 stars 9 forks source link

Support hiding tabs for routes #41

Open EvanBacon opened 1 day ago

EvanBacon commented 1 day ago

In React Navigation, you can pass the following to prevent a tab from rendering in the bar:

  tabBarButton: (props) => {
    return null;
  }

This is one of the more common properties in React Navigation's tab bar system.

okwasniewski commented 8 hours ago

Hey, thanks for opening the issue!

I've tried to make it work, but the built-in TabView (or UITabBarController for UIKit) doesn't support this.

Pages are tied to Tab Bar Items. What's the real-world use case for this? I think you can achieve a similar stuff using Stack Navigator if you want to have hidden routes