I haven't done Android development in a while, so my knowledge of modern Android development is spotty.
I'm trying to learn React Native. I use WSL as my primary development environment. Since it'll probably be a pain to set up the Android emulator in Linux/WSL, I want to run the emulator directly on Windows. However, I'd prefer to be able to run react-native run-android
in WSL.
How would I set up React Native to be able to run react-native run-android
in WSL and run the app in an Android emulator on Windows?
My ANDROID_HOME
variable should be set up correctly, but I don't know enough about Android to know if this is doing anything:
export ANDROID_HOME=/mnt/c/Users/Leo/AppData/Local/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools