How to show or hide tab bar icon?


#1

Congratulations to the version 18 of Expo! Hi everybody, in MainTabNavigator.js bottom, you can set tabBarOptions: {
showIcon: true,
showLabel: true,

}

my problem is how to show someone but hide someone? For example, have 3 tabs, Home, Links and Settings, I want to let Home and Settings show the label but Settings dosn’t show the label.My code such below:
showLabel: (routeName == ‘Links’) ? false : true
But it not work.

Thank you.