RN package.json的操作
package.json. 类似于iOS的podfile文件
以下就是一些依赖的东西。可以直接本地依赖和远端npm install 来加载
{
"name": "ReactNativeJiangganMap",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"mobx": "^3.4.1",
"mobx-react": "^4.3.5",
"native-base": "2.4.1",
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-camera": "^1.0.3",
"react-native-common-util": "file:rndepend/react-native-common-util",
"react-native-gifted-listview": "file:rndepend/react-native-gifted-listview",
"react-native-image-crop-picker": "file:rndepend/react-native-image-crop-picker",
"react-native-picker": "^4.3.7",
"react-native-root-modal": "file:rndepend/react-native-root-modal",
"react-native-root-toast": "file:rndepend/react-native-root-toast",
"react-native-servicebus": "file:rndepend/react-native-servicebus",
"react-native-sound": "file:rndepend/react-native-sound",
"react-native-splash-screen": "^3.1.1",
"react-navigation": "file:rndepend/react-navigation",
"rxjs": "^5.3.0"
},
"devDependencies": {
"babel-jest": "23.0.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-react-native": "4.0.0",
"jest": "23.1.0",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}