jhen0409 / react-native-boilerplate

The React Native, Redux boilerplate for personal usage
MIT License
246 stars 80 forks source link

addListener is undefined #21

Closed MrHazimAli closed 6 years ago

MrHazimAli commented 6 years ago

Hye, I really like this boilerplate but recenly when I clone and want try the default one, I get error addListener is undefined, Im not sure where it comes from

any idea how to fix this one ? @jhen0409

Kerita commented 6 years ago

me too!

MrHazimAli commented 6 years ago

@Kerita , this is due to changes in react-navigation.. you need to check latest react-navigation documentation.. however, you also can use this boilerplate that I already clone and make some changes to what I need.

I clone one of the branches and make changes that I need.. https://github.com/MrHazimAli/react-native-boilerplate

if I accidentally violates any copyright, let me know and I will delete the branch. cc: @jhen0409

cxk280 commented 6 years ago

@MrHazimAli: You should submit your fork as a pull request here. The old version of react-navigation that this repo currently uses is likely to cause more and more problems as time goes on. In my case, simply switching from a StackNavigator to a SwitchNavigator threw all kinds of unhelpful errors. Updating to a newer version of react-navigation was a nightmare, and I could not have done it without your fork. Many thanks!