【发布时间】:2018-07-21 05:03:10
【问题描述】:
我想从 react native 创建 redis 客户端,我正在阅读一些教程。
https://www.smoothterminal.com/articles/using-android-native-modules
我已经建立了它。现在我正在搜索/想知道如何将其作为服务放在 npm 上?
我想知道我的项目中有哪些重要文件以及人们如何在他们的项目中使用它
【问题讨论】:
标签: react-native npm
我想从 react native 创建 redis 客户端,我正在阅读一些教程。
https://www.smoothterminal.com/articles/using-android-native-modules
我已经建立了它。现在我正在搜索/想知道如何将其作为服务放在 npm 上?
我想知道我的项目中有哪些重要文件以及人们如何在他们的项目中使用它
【问题讨论】:
标签: react-native npm
示例包.json
{
"name": "react-native-nameproject",
"version": "0.0.1",
"description": "",
"repository": {
"type": "git",
"url": "https://github.com/user/react-native-nameproject.git"
},
"bugs": {
"url": "https://github.com/user/react-native-nameproject/issues"
},
"homepage": "https://github.com/user/react-native-nameproject#readme",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"react-native"
],
"author": "",
"license": "",
"peerDependencies": {}
如果你把你的项目的链接放在git上,最好能帮到你。
【讨论】: