Skip to content

Instantly share code, notes, and snippets.

@lithin
Last active May 30, 2019 19:44
Show Gist options
  • Save lithin/ffb0071d13d863f2bf8a4527d9b149db to your computer and use it in GitHub Desktop.
Save lithin/ffb0071d13d863f2bf8a4527d9b149db to your computer and use it in GitHub Desktop.
Working on CLI
  1. Check out react-native repo and update template following Christoph's instructions

  2. Check out react-native-cli repo, cd into it and run yarn and yarn build.

  3. Go back up and create a new RN project: node ./cli/packages/cli/build/index.js init --template=file:///Users/annadoubkova/Workspace/react-native RNTestProject

  4. Update gradle config in the newly created project following the second part of Christoph's instructions

  5. Run start command REACT_NATIVE_APP_ROOT=../cli node ../cli/packages/cli/build/index.js start

  6. Compile your app eg node ../cli/packages/cli/build/index.js run-android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment