Skip to content

Instantly share code, notes, and snippets.

@qfarenwald
Last active December 16, 2019 19:52
Show Gist options
  • Save qfarenwald/2419f7fcac64658eb0eb9b4de5774690 to your computer and use it in GitHub Desktop.
Save qfarenwald/2419f7fcac64658eb0eb9b4de5774690 to your computer and use it in GitHub Desktop.

Create React Native App

ExpoCLI

Install Expo on phone

Then on comp...

npm install -g expo-cli

expo init <app-name>

cd into project

npm start

  • top option in 'Managed WorkFlow'(blank)

  • change name to app name

  • N to install Yarn dependencies... or Y

Download Expo Client on phone and sign in with account

Open up camera on phone and scan QR code

Got it

If need to close, open with expo start

Download Android Studio https://developer.android.com/ Go through app install fully, selecting all default settings

Root in terminal

ls -a

cd .bash_profile

Install these lines at the bottom

export ANDROID_SDK=/Users/q/Library/Android/sdk

export PATH=/Users/q/Library/Android/sdk/platform-tools:$PATH

Restart terminal

Enter adb in terminal

Open Android Studio modal

Configure - SKD

check

  • SDK Platforms
    • Q
    • Pie
  • SDK Tools
    • SDK Build-Tools
    • Emulator
    • SDK Platform-Tools
    • SDK Tools
    • Intel x86 Emulator
    • Google Play services

Configure - AVD

  • choose device
  • choose most stable (Pie, might need to download)

Make sure expo start Press a to open app on Android fake phone on computer

https://facebook.github.io/react-native/docs/components-and-apis

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