I have some custom icons for my tab bar that seem to populated perfectly on the simulator but not after it’s built. I originally have the icons in my reducer and have moved them to the component using them, but I still can’t get them to populate when built.
Here is my code:
const tabIcons = {
'shopping': require('./assets/images/shopping.png'),
'profile': require('./assets/images/profile.png'),
}
return tabs.tabs.map((tab, i) => (
<TabBarIOS.Item
key={ tab.key }
icon={ tabIcons[tab.key] }
title=''
selected={ tabs.index === i }
onPress={ _ => onTabClick(i) }
>
{ this.renderTab(tab.key) }
</TabBarIOS.Item>
));
Any suggestions?