I'm using a custom component as the tab icon, and rather than rendering it twice in renderIcon and renderSelectedIcon, it's easier to just point to it once in renderIcon and then let it know in a prop whether it's selected or not. See the change to the README for an example.
I'm using a custom component as the tab icon, and rather than rendering it twice in
renderIcon
andrenderSelectedIcon
, it's easier to just point to it once inrenderIcon
and then let it know in a prop whether it's selected or not. See the change to the README for an example.