创建项目
react-native init MyProject
运行packager
react-native start
安卓运行
react-native run-android
安装包命令
如:yarn add react-navigation
或者 npm install --save react-navigation
或者第三方库 react-native link react-native-gesture-handler
参考资料:
http://bbs.reactnative.cn/topic/10/%E5%9C%A8windows%E4%B8%8B%E6%90%AD%E5%BB%BAreact-native-android%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/3