react native初学常用命令

初始化的的时候指定某一版本
react-native init rnAndroid --version 0.59.10

常用命令
remove node_modules and package-lock.json
npm install
npm install --save react-navigation
npm install --save react-native-gesture-handler
react-native link

npm install --save react-navigation
npm install --save react-native-gesture-handler
npm install --save react-navigation-stack

yarn add react-native-safe-area-view react-native-safe-area-context

npm install @react-native-community/masked-view

rm -rf node_modules && npm install

端口映射:
adb reverse tcp:8082 tcp:8082
日志打印:
react-native log-android

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。