Creates a custom TabBar where you can decide which routes to display
npm install react-navigation-selective-tab-barCreates a custom TabBar where you can decide which routes to display
npm install react-navigation-selective-tab-bar
``const AppNavigator = createBottomTabNavigator(`
{
One: {
screen: ScreenOne
},
Two: {
screen: ScreenTwo
},
Three: {
screen: ScreenThree
},
Four: {
screen: ScreenFour
}
},
{
tabBarComponent: props => {
return (
display={["One", "Three"]} // Required
background="black" // Optional
/>
);
}
}
);

git clone https://github.com/suarezluis/react-navigation-selective-tab-bar.git cd react-navigation-selective-tab-bar cd example npm install or yarn install react-native run-ios or react-native run-android`