1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| # 新建项目 npx react-native init AwesomeProject
# 使用固定版本创建新项目 npx @react-native-community/cli init example --version 0.71.3
# 启动Metro npm start yarn start
# 运行Android端 npm run android yarn android npm run ios yarn ios
# 指定设备 yarn react-native run-ios --device="iPhone 6S "
|