Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RealPeha/64a479afd8655cb19f4382ac03d45d15 to your computer and use it in GitHub Desktop.
Save RealPeha/64a479afd8655cb19f4382ac03d45d15 to your computer and use it in GitHub Desktop.
React Native setup without Expo, Android Studio and Android Emulator
  1. Install Android SDK command line tools only: https://developer.android.com/studio/#command-tools
  2. Extract .zip to /opt/android/cmdline-tools/tools/
  3. sudo chown -R $(whoami) /opt/android/
  4. For API Level 26: /opt/android/cmdline-tools/tools/bin/sdkmanager "platforms;android-26" "build-tools;26.0.3" "add-ons;addon-google_apis-google-24"
  5. npm install -g react-native-cli
  6. react-native init ReactNativeProject
  7. cd ReactNativeProject
  8. Plug in your android phone
  9. yarn android / npm run android / react-native run-android
  10. yarn start / npm run start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment