Skip to content

Instantly share code, notes, and snippets.

@emctoo
Last active December 11, 2015 17:32
Show Gist options
  • Save emctoo/b2258b68379a4904acad to your computer and use it in GitHub Desktop.
Save emctoo/b2258b68379a4904acad to your computer and use it in GitHub Desktop.
archlinux react native android

archlinux 配置 react native for android 环境

  • Android国内源, 东软不错
  • 配置npm源,全局安装位置, $PATH(淘宝源, .npmrc, ~/node_modules)
  • npm install -G react-native-cli
  • react-native init --verbose demo, 家--verbose,不然以为死掉了
  • 运行,参考
  • react-native run-android 会install,但是运行错误
    • 配置ip:port, port=8081
    • react-native start, 启动服务器
  • 我使用的android机器是4.4的,不能用反向代理(?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment