将本地反应级别从0.59升级到0.61时,本地反应导航出现错误

时间:2019-10-30 07:40:02

标签: reactjs react-native react-native-android wix-react-native-navigation

在将react59升级到react61时,出现了本机导航问题,请帮助我。 检查以附加图像。enter image description here

1 个答案:

答案 0 :(得分:0)

请在android / app / build.gradle文件中添加missingDimensionStrategy“ RNN.reactNativeVersion”,“ reactNative60”。

 android {
    ...
    defaultConfig {
        applicationId "com.yourproject"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        missingDimensionStrategy "RNN.reactNativeVersion", "reactNative60"// add this line
        versionCode 1
        versionName "1.0"
        ...
    }
    ...
}