Reaction-native-code-push использует устаревший «rnpm» Как удалить предупреждение - PullRequest
1 голос
/ 27 сентября 2019

Я реализовал code push в своем проекте, когда я запускаю проект, показывающий следующее предупреждение deprecation.

Как решить это предупреждение?

Подробнее О проблеме

реакция-собственный-push-код / ​​выпуски / 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

Что-то выпущенное для этого

"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"
}
...