官方文档环境搭建地址:https://reactnative.cn/docs/getting-started.html

软件下载地址:http://study.yycc456.com

1.nodejs(12.3.0)        node -v

2.npx nrm use taobao

3.npm install -g yarn   (安装yarn)

4.npm install -g react-native-cli

.

 5. react-native --help

6.下载安装AndrioStudio (https://developer.android.google.cn/index.html)

7. 初始化项目 react native  (react-native init appName)

react-native init appName

8. react-native run-android   运行项目

 

 

第一种方法:在模拟器中运行

1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐