首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >react本机代码推送使用不推荐的"rnpm“如何删除警告

react本机代码推送使用不推荐的"rnpm“如何删除警告
EN

Stack Overflow用户
提问于 2019-09-27 09:40:16
回答 1查看 781关注 0票数 2

当我运行项目时,我已经在我的项目中实现了一个code push,它显示了下面的deprecation警告。

如何解决这个警告?

更多关于问题

反应-本机-代码-推送/问题/1625

代码语言:javascript
复制
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

代码语言:javascript
复制
"dependencies":
 {
   "react": "16.9.0",
   "react-native": "0.61.1",
   "react-native-code-push": "^5.7.0"
 }

node_modules_reactnativecodepush_package.json

一些与此有关的事情

代码语言:javascript
复制
"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"
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-26 01:39:52

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58131908

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档