升级react-navigation-redux-helpers版本遇到问题
来源:7-4 列表实现&数据渲染【封装与复用】
yeahecho
2019-02-25
老师你好,我把"react-navigation-redux-helpers"版本从2.0.9升级到 3.0.0,运行不成功,截图如下,我试过反复安装删除这个库,rm -rf node_modules&& npm install,rm -rf ios/build/,重启模拟器,还是没解决,代码里已经没有reduxify了,请老师解惑,谢谢老师。
2回答
-
使用了react-navigation-redux-helpers3.0导致的,课程代码已对react-navigation-redux-helpers3.0做了适配,可参考:
https://coding.imooc.com/learn/questiondetail/102354.html
00 -
yeahecho
提问者
2019-02-25
几番折腾后,旧提示没了,又出新问题。参照老师代码,确实在调用`createReduxContainer`之前,调用了`createReactNavigationReduxMiddleware`,依赖和库版本如下,
"react": "16.6.3",
"react-native": "0.58.5",
"react-native-gesture-handler": "^1.0.15",
"react-native-vector-icons": "^6.3.0",
"react-navigation": "^3.0.9",
"react-navigation-redux-helpers": "^3.0.0",
"react-navigation-tabs": "^1.0.2",
"react-redux": "^5.1.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
谢谢老师
00
相似问题