How to hide one of the item in the react-navigation bottom navigation bar based on some condition
For Example : this.state.show == true
So far i had tried as below
const Main = createBottomTabNavigator(
{
Home: {screen: HomeStack},
CheckInOut: this.state.show ? {screen: CheckStack} : null ,
Attendance: {screen: AttendanceStack},
Profile: {screen: ProfileStack},
},