react-redux [v7.0.2]: Getting "TypeError: Object(...) is not a function" when wrapping component export with connect()

OK just found a Solution on expo forum and here on StackOverflow. Try Downgrading react-redux to v.6.0.0.

Reason:

connect now uses React.memo() internally, which returns a special object rather than a function.

What To Do:

npm uninstall react-redux -S

npm i [email protected] -S


react-redux requires a minumum version of react, as specified in the release notes. In particular, 7.0.3 has a peer dependency on react ^16.8.3.

Instead of downgrading react-redux, (if you can) you should upgrade react:

npm upgrade react react-dom

Need to upgrade both react and react-dom:

npm install --save react@latest

npm install --save react-dom@latest