redux-react-navigation-demos icon indicating copy to clipboard operation
redux-react-navigation-demos copied to clipboard

App crashing on start

Open ekanshoyo opened this issue 7 years ago • 5 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.

ekanshoyo avatar Feb 08 '18 08:02 ekanshoyo

screen shot 2018-02-11 at 08 34 21

dihan avatar Feb 11 '18 08:02 dihan

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

https://github.com/infinitered/ignite/issues/1225

dihan avatar Feb 11 '18 08:02 dihan

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 https://github.com/shubhnik/redux-react-navigation-demos/blob/3ab7253841cefade35bbd2f6a840f347b4036401/package.json#L12


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 avatar Mar 05 '18 08:03 corysimmons

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

MatheusParanhos avatar Mar 10 '18 08:03 MatheusParanhos

@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.

corysimmons avatar Mar 11 '18 00:03 corysimmons