Is there any way to dynamically set a new tab bar icon AND color? In my app, I want the icon for the CHAT tab to be changed to red when a new message arrives.
Steps to Reproduce / Code Snippets / Screenshots
this.props.navigator.setTabButton(
{
tabIndex: 2,
screen: 'parkour.ChatListScreen',
title: 'Chat',
icon: iconsMap[2],
style: { color: 'red' }
},
the style property does not work at all, the resulting color is yellow.
I a using react native navigation v.1.