I want to compile a project locally and then use eas debbuging and development build.
-
create a react-native app
npx create-expo-app@latest --template tabs
. -
build the app with android studio
expo run:ios -or android
or ucan use eas.- I added as script called
build-app-android
in this project that does just this task. - This will crate an android folder in your route project. (the app will also run on you phone locally if adb is configured)
- if you dont have android studio or xcode installed on your local pc you can use ESA to buld the app for you(on the cloud).
eas build -p ios -or android
- I added as script called
-
run a development build locally on your pc using
expo start --dev-client
Now that your app is running locally we now need to connect it to esa.
- configure the project to use EAS.
eas build:configure
- Send the development build to EAS for developers to run javascript code no need to compil the android apk.
eas build --profile development --platform android
- You can also compile an APK with EAS to install on a local andrpod device.
eas build -p android --profile preview