React Native on Android
Installing Linux Dev Environment
On ubuntu you can install the android SDK with apt-get install android-sdk
.
Creating a Project
Using npx create a new project
Running the Project
Start the app with npm run android
you might get error messages about not knowing where android home is. On ubuntu android home installed from deb packages is normally at /usr/lib/android-sdk
(source) so just run:
export ANDROID_HOME=/usr/lib/android-sdk
before you try to launch the app.