This is a helper for react-native development that allows for auto starting the android emulator before running the app in a similar way to how the iOS simulator is auto started.
This is a modified version of the original project by @antonholmberg that terminates the process with a zero exit code within 7 seconds after the command to start the emulator is executed. This allows for creating a npm script that always tries to start the emulator before running the app.
You need to set the either set the environment variable ANDROID_HOME
or ANDROID_SDK
to where your android sdk is installed. For me on a mac this is ~/Library/Android/sdk
but
this will depend on your OS and installation.
Run android-emulator
in the terminal. The first emulator in the AVD list will start.