react-native-cli 和 react -native 啥关系?
React Native is distributed as two npm packages, react-native-cli and react-native.
The first one is a lightweight package that should be installed globally (npm
install -g react-native-cli), while the second one contains the actual React Native framework code and is installed locally into your project when you run react-native
init.
Because react-native
init calls npm
install react-native, simply linking your local github clone into npm is not enough to test local changes.
那么怎么去使用init安装的react-native 运行 git hup facebook 下的react-native 的example?
本文阐述了react-native-cli和react-native两个npm包的关系。前者作为轻量级全局安装包,后者则包含了React Native的实际框架代码。文章还介绍了如何在项目中正确地使用react-native init来安装和运行React Native框架。
904

被折叠的 条评论
为什么被折叠?



