React Native with Expo

721次阅读
没有评论

试试新玩具。

Get Started with React Native · React Native

当创建完项目后,会自动创建一个example样例,可以通过改样例来尝鲜expo。

之后执行:npm run reset-project 会将example的代码移动到/app-example目录。

  1. 安装Node
  2. 安装Android Studio(下载可能叫Android Studio Meerkat,后面的Meerkat其实是版本代号),在安装组件环节中,会到google服务器下载资源,例如:https://dl.google.com/android/repository/emulator-windows_x64-13025442.zip 可能会因为网络问题导致下载失败,或者一直卡在这里。
  3. 安装React Native with expo
  4. 运行项目:npm run android(需要先安装Android Studio,不然会报错:Failed to resolve the Android SDK path. Default install location not found: C:\Users\wujingquan\AppData\Local\Android\Sdk. Use ANDROID_HOME to set the Android SDK location.)
正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-11-30发表,共计549字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)