Closed RodrigoRMG closed 7 years ago
Having this exact same issue too my image definitely exists and can be displayed elsewhere but when I set it inside renderIcon{} and renderSelectedIcon{} it still shows blank for that tab.
Just figured this one out... you have to actually return the
So changing my function to:
renderIcon = {() => { return( < Image source={...} / > ) }}
worked for me.
Hi, I can´t set an icon for each tab this is my code:
<TabNavigator.Item selected={this.state.selectedTab === 'dashboard'} title="Dashboard" renderIcon={() => \<Image source={{uri: iconDashboard}} />} renderSelectedIcon={() => \<Image source={{uri: iconDashboard}} />} onPress={() => this.setState({ selectedTab: 'dashboard' })}>
Any help?