React native 反应本机版本不匹配错误-Expo

React native 反应本机版本不匹配错误-Expo,react-native,expo,React Native,Expo,在初始化项目然后启动Xcode emulator时,收到以下消息: "React Native version mismatch. Javascript version: 0.59.10 Native version: 0.61.4-undefined ..." My package.json: { "name": "tinder-react-native", "description": "Tinder React Native clone", "version"

在初始化项目然后启动Xcode emulator时,收到以下消息:

"React Native version mismatch.

Javascript version: 0.59.10
Native version: 0.61.4-undefined

..."
My package.json:

{
    "name": "tinder-react-native",
    "description": "Tinder React Native clone",
    "version": "0.2.0",
    "author": "Steven Persia",
    "licence": "MIT",
    "homepage": "https://github.com/stevenpersia/tinder-react-native",
    "private": true,
    "scripts": {
        "lint": "eslint ./components ./containers --fix",
        "start": "node node_modules/react-native/local-cli/cli.js start",
        "test": "jest"
    },
    "dependencies": {
        "expo": "^37.0.8",
        "react": "16.6.3",
        "react-native": "^0.59.10",
        "react-native-card-stack-swiper": "^1.1.0",
        "react-native-gesture-handler": "^1.0.12",
        "react-navigation": "^3.0.9"
    },
    "devDependencies": {
        "babel-jest": "^24.8.0",
        "eslint": "^6.6.0",
        "eslint-config-standard": "^14.1.0",
        "eslint-plugin-import": "^2.18.2",
        "eslint-plugin-node": "^10.0.0",
        "eslint-plugin-promise": "^4.2.1",
        "eslint-plugin-react": "^7.16.0",
        "eslint-plugin-react-native": "^3.8.1",
        "eslint-plugin-standard": "^4.0.1",
        "jest": "^24.8.0",
        "metro-react-native-babel-preset": "0.51.1",
        "react-test-renderer": "16.6.3"
    },
    "jest": {
        "preset": "react-native",
        "transform": {
            "node_modules/react-native/.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
        }
    },
    "rnpm": {
        "assets": [
            "./assets/fonts/"
        ]
    }
}

有人知道这里发生了什么,能帮我吗?这真是令人沮丧。 一些信息:我没有安装watchman。我不知道该怎么办,因为app.json中没有sdkVersion

I was also struggling with this. 

Somebody has added this https://bintray.com/weimob/maven/react-native/0.55.3 and it will break all React Native Android builds that specify jcenter() in project's repositories.

To avoid this issue, you should force React Native version in android/app/build.gradle file like this compile ("com.facebook.react:react-native:0.52.0") { force = true }. Change 0.52.0 to version you're using.

我在谷歌上找到了这个,我想这可能对你有帮助


关于

您是如何创建该项目的?您是否使用了
react native cli
,或
expo cli
?是否解决了此问题?
I was also struggling with this. 

Somebody has added this https://bintray.com/weimob/maven/react-native/0.55.3 and it will break all React Native Android builds that specify jcenter() in project's repositories.

To avoid this issue, you should force React Native version in android/app/build.gradle file like this compile ("com.facebook.react:react-native:0.52.0") { force = true }. Change 0.52.0 to version you're using.