I am using react navigation (https://reactnavigation.org/) to display icons for the bottom navigation tabs. Icons are displaying fine, however, when I enter into pages in the stack, the icons disappear.
I can get the icons to show by referring to the icon image on each page individually, but I am wondering if there is a better way to do this. Thanks.
static navigationOptions = {
tabBarIcon: () => (
<Image
source={require('../../assets/profile.png')}
style={styles.icon}
/>
)
}