shubhnik / redux-react-navigation-demos

React-Native + Redux + Redux-Persist + React Navigation ( Authentication Flow with Redux demos)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App crashing on start

ekanshoyo opened this issue · comments

Hey! Just cloned master branch and ran the app for the first time it's throwing error:-

TypeError: undefined is not a function (evaluating 'e')

Any idea what's this about.

commented

screen shot 2018-02-11 at 08 34 21

commented

Seems to be an issue with the updated version of React-Navigation

infinitered/ignite#1225

As @dihan pointed out. react-navigation went through a ton of changes recently. A few article writers released redux/react-navigation posts as react-navigation was in beta (as denoted by the -beta flag on the version).

To get this working, version-lock it.

Remove the ^ on

"react-navigation": "^1.0.0-beta.15",


That said, these tutorials are pretty useless now unless you plan on learning incorrect stuff or version locking yourself at that beta release forever. FeelsBadMan.

@corysimmons Damn. I was really trying to integrate redux with my navigation. Have you found any workaround for this?

@MatheusParanhos https://reactnavigation.org/docs/redux-integration.html works but it's a pain to actually maintain.

I highly suggest you think twice about why you're using Redux with ReactNavigation, and if you can get away with not doing it, since there doesn't seem to be any elegant way to do React nav with Redux.