采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
老师你好,我把"react-navigation-redux-helpers"版本从2.0.9升级到 3.0.0,运行不成功,截图如下,我试过反复安装删除这个库,rm -rf node_modules&& npm install,rm -rf ios/build/,重启模拟器,还是没解决,代码里已经没有reduxify了,请老师解惑,谢谢老师。
使用了react-navigation-redux-helpers3.0导致的,课程代码已对react-navigation-redux-helpers3.0做了适配,可参考:
https://coding.imooc.com/learn/questiondetail/102354.html
几番折腾后,旧提示没了,又出新问题。参照老师代码,确实在调用`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"
谢谢老师
登录后可查看更多问答,登录/注册
解锁React Native开发应用新姿势,React Native新版本热门技术
1.7k 2
1.4k 3
1.9k 4
2.0k 2
1.2k 1