我是 React Native 的新手,已经看到一些博客文章/教程使用 react-native install 或 npm install 作为依赖项。这两种方法有什么区别,优缺点是什么?
最佳答案
react-native install xxx
用于安装 react native 依赖项,之后应该进行链接。
您只需链接 native iOS/Android 依赖项。
同样的事情可以通过运行npm install xxx
然后react-native link xxx
来链接库
如果你只想安装一个只有 JS 的库,你可以使用 npm install
关于facebook - react-native install 和 npm install 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42780158/