Navigation icons disappear when accessing stack pages in

I am using reactnavigation ( https://reactnavigation.org/ ) to display icons for the bottom navigation tabs. The icons render well, however when I step into the pages in the stack the icons disappear.

I can display icons by referring to the icon image on each page separately, but I'm wondering if there is a better way to do this. Thank.

    static navigationOptions = {
    tabBarIcon: () => (
      <Image
        source={require('../../assets/profile.png')}
        style={styles.icon}
      />
      )
    }

      

+3


source to share


1 answer


In my case, my cell phone time was wrong. Once I made my cell phone the same as my computer time, my problem was fixed.



0


source







All Articles