天天看點

react-navigation-redux-helpers 報錯解決辦法

react-navigation-redux-helpers 中間件

報錯問題如下,經過兩天不斷百度,谷歌,解除安裝,降級,發現,都不行! 幾乎要崩潰,最後自己改了一下redux、react-redux、react-navigation、react-navigation-redux-helpers 版本。删除node_modules,yarn install 下載下傳,重新運作,終于成功,将package.json版本貼出來,希望能幫到有需要的人!

react-navigation-redux-helpers 報錯解決辦法
react-navigation-redux-helpers 報錯解決辦法
react-navigation-redux-helpers 報錯解決辦法

package.json檔案

"dependencies": {
    "@react-native-community/async-storage": "^1.6.3",
    "prop-types": "^15.7.2",
    "react": "16.9.0",
    "react-native": "0.61.4",
    "react-native-gesture-handler": "^1.5.0",
    "react-native-picker": "^4.3.7",
    "react-native-storage": "^1.0.1",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^2.18.2",
    "react-navigation-redux-helpers": "2.0.9",
    "react-redux": "6.0.0",
    "redux": "^4.0.1"
  },
  "devDependencies": {
    "@babel/core": "7.7.2",
    "@babel/runtime": "7.7.2",
    "@react-native-community/eslint-config": "0.0.5",
    "babel-jest": "24.9.0",
    "babel-plugin-root-import": "^6.4.1",
    "eslint": "6.6.0",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.56.3",
    "postinstall": "^0.7.0",
    "react-test-renderer": "16.9.0",
    "redux-thunk": "^2.3.0"
  },
  "jest": {
    "preset": "react-native"
  }
           

繼續閱讀