Navigation icons are disappearing when accessing stack pages in react native

Viewed 514

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}
      />
      )
    }
1 Answers

In my case my cell phone time was not correct. As soon as I made my cell phone same as my computer time my issue was fixed.

Related