TooManyJohns / RNP

React Native Pokedex Port Application ~issues are currently being used as a personal dev journal, not meant to be closed~
https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Johto_Pok%C3%A9dex_number
0 stars 0 forks source link

Navigation View header option wasn't loading for screens on the StackNavigator #12

Open TooManyJohns opened 4 years ago

TooManyJohns commented 4 years ago

Answered issue: defaultNavigationOptions is a 3.0+ react-navigation use. In 2.18.5 (my current version) it is navigationOptions, works fine as:


export const RNProject =  StackNavigator({
  Home: { 
    screen: HomePage 
  },
  Info: { 
    screen: PokemonList,
    navigationOptions: {
      header:null
    }
  }
}, 
{
  navigationOptions: 
  {
  header: null
  }
})