React native 必须向createNavigationPropConstructor提供App.router

React native 必须向createNavigationPropConstructor提供App.router,react-native,react-navigation,redux-thunk,React Native,React Navigation,Redux Thunk,我在将react navigation和redux helpers库升级到最新版本后出现此错误,但仍然无法找到任何有用的链接 “反应”:“16.3.1” “反应本机”:“0.55.4” “反应导航”:“^2.3.1” “react navigation redux帮助程序”:“^2.0.1” 不变冲突:自react navigation redux起,必须向createNavigationPropConstructor提供App.router-helpers@2.0.0. 了解更多信息: 此

我在将react navigation和redux helpers库升级到最新版本后出现此错误,但仍然无法找到任何有用的链接

  • “反应”:“16.3.1”
  • “反应本机”:“0.55.4”
  • “反应导航”:“^2.3.1”
  • “react navigation redux帮助程序”:“^2.0.1”

    不变冲突:自react navigation redux起,必须向createNavigationPropConstructor提供App.router-helpers@2.0.0. 了解更多信息:


此错误可能是由于您上面链接的文档有点不正确和误导性,导致不正确使用
reduxifyNavigator
,即传入一个普通的ol'
组件而不是
导航容器

请查看几周前发布的此解决方案

This error is located at:
    in NavigatorReduxWrapper (created by Connect(NavigatorReduxWrapper))
    in Connect(NavigatorReduxWrapper) (at App.js:27)
    in Provider (at App.js:26)
    in App (at renderApplication.js:33)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:32)