Pitty
Pitty

Reputation: 1977

react-native-router-flux undifine is not a function (evaluationg 'addListner')

I upgraded my router-flux version 0.27 to 0.30. I am facing error of evaluating addListner I also submit it in the issue

enter image description here

Upvotes: 0

Views: 111

Answers (1)

Roy Wang
Roy Wang

Reputation: 11260

4.0.0-beta.30 is broken as the last commit says

update dependencies, bump version - don't use, errors are possible!

4.0.0-beta.28 is broken too. Use 4.0.0-beta.27 instead.

In package.json, make sure you have exactly this:

"react-native-router-flux": "4.0.0-beta.27"

Don't include ^ otherwise your package manager will still install the .28 version (unless you have a yarn.lock at .27).

Upvotes: 2

Related Questions