我使用react-native-base
来使用react-native组件。
我之前已安装
react-native-document-picker
react-native-fcm
react-native-image-crop-picker
react-native-vector-icons
react-navigation
但现在,无论我在现有应用程序中安装的新软件包/库,我的一些现有软件包/文件都将被删除,因此会出现很多错误。为什么在安装任何新软件包时会发生这种情况。 这是我在安装新库时附加的屏幕截图
的package.json
{
"name": "myApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-star-rating": "^1.0.9"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}