无法解析模块`ActivityIndi​​cator`

时间:2017-09-20 07:38:24

标签: react-native

我是反应原生的新手,我在运行命令react-native run-android时收到此错误。在安装和卸载react-native-speech-to-text收到此错误消息之后,以前的应用程序运行正常。

我试过以下

  • 删除node_modules文件夹和npm install。
  • npm start - reset-cache。
  • cd android& gradlew clean。

但我无法解决问题。 提前致谢

的package.json

{
  "name": "App",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "moment": "^2.18.1",
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.4",
    "react-native-action-button": "^2.8.0",
    "react-native-vector-icons": "^4.3.0",
    "react-navigation": "^1.0.0-beta.11",
    "uuid": "^3.1.0"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "2.1.0",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "android/app/src/main/assets/fonts/Montserrat"
    ]
  }
}

1 个答案:

答案 0 :(得分:0)

react-native的版本更改为0.48,并且工作正常。