Я выполняю процедуру аутентификации с помощью response-navigation v3, я хочу, чтобы значки и метка отображались на панели вкладок. После реализации значки на панели вкладок не отображают только метку.
//Assigninig of TabBar Icon and Config..
const getTabBarIcon = (navigation, focused, tintColor) => {
const { routeName } = navigation.state;
let iconName;
if (routeName === "Explore") {
iconName = `ios-heart${focused ? "" : "-empty"}`;
} else if (routeName === "Inbox") {
iconName = `ios-mail${focused ? "" : "-open"}`;
}
return <Icon name={iconName} size={24} color={tintColor} />;
};
//Creating a BottomTab
const AppTab = createBottomTabNavigator(
{
Explore: ExploreScreen,
Inbox: InboxScreen
},
{
defaultNavigationOptions: ({ navigation }) => ({
tabBarIcon: ({ focused, tintColor }) => {
getTabBarIcon(navigation, focused, tintColor);
}
})
},
{
tabBarOptions: {
activiTintColor: "tomato",
inactiveTintColor: "gray"
}
}
);
//Inserting BottomTab Navigation into StackNavigator
const AppStackNavigator = createStackNavigator({
AppStack: AppTab
});
//Compiling all Screens into SwitchNavigator
const NavigationConfig = createSwitchNavigator(
{
SplashScreen: SplashScreen,
App: AppStackNavigator,
Auth: AuthStack
},
{
initialRouteName: "App"
}
);