Generate APK file from React Native + Expo App


To generate an APK from your Expo app, follow these steps:
Build your app using Expo Application Services (EAS) by running the following command in your terminal:
eas build --platform android
Download the .AAB file from EAS after the build completes.
Download the BundleTool from GitHub using this link:
Download BundleToolOnce downloaded, use the following command to convert the .AAB file into APK(s):
java -jar bundletool-all-1.18.0.jar build-apks --bundle=app.aab --output=stickersmash.apks --mode=universal
Replace
app.aab
with the name of your own .AAB file. This will generate a.apks
file (e.g.,stickersmash.apks
).Rename the
.apks
file to.zip
.Extract the ZIP file. Inside, you will find the
universal.apk
file, which you can now install on your Android device.
Note: The stickersmash
name used here is specifically for this demo app tutorial, created by the Expo team. You can freely use this guide to build and generate APKs for your own Expo apps using the exact steps provided above.
Subscribe to my newsletter
Read articles from Abhinab Choudhury directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
