【问题标题】:react-native-code-push uses deprecated "rnpm" How to remove warningreact-native-code-push 使用已弃用的“rnpm”如何删除警告
【发布时间】:2019-09-27 09:40:16
【问题描述】:

当我运行项目时,我在项目中实现了code push,它显示以下deprecation 警告。

如何解决这个警告?

More About issue

react-native-code-push/issues/1625

warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-code-push: https://microsoft.github.io/code-push
Please notify their maintainers about it. You can find more details at https://github.com/react- 
native- 
community/cli/blob/master/docs/configuration.md#migration-guide.

Packaje.json

"dependencies":
 {
   "react": "16.9.0",
   "react-native": "0.61.1",
   "react-native-code-push": "^5.7.0"
 }

node_modules_reactnativecodepush_package.json

Some thing related to this

"rnpm": {
"android": {
  "packageInstance": "new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG)"
},
"ios": {
  "sharedLibraries": [
    "libz"
  ]
},
"commands": {
  "postlink": "node node_modules/react-native-code-push/scripts/postlink/run",
  "postunlink": "node node_modules/react-native-code-push/scripts/postunlink/run"
}
},

  "typings": "typings/react-native-code-push.d.ts",
  "version": "5.7.0"
}

【问题讨论】:

    标签: react-native npm code-push react-native-code-push


    【解决方案1】:

    此警告已在新的 react-native-code-push@6.0.0 版本中删除。 https://github.com/microsoft/react-native-code-push/releases/tag/v6.0.0 在小时应用程序中使用此版本。请注意设置步骤已更改。

    【讨论】:

      猜你喜欢
      • 2020-06-20
      • 1970-01-01
      • 2020-07-20
      • 1970-01-01
      • 1970-01-01
      • 2017-05-25
      • 2017-08-02
      • 1970-01-01
      • 2021-08-14
      相关资源
      最近更新 更多