Home > database >  React Native: Build apk file using Expo CLI
React Native: Build apk file using Expo CLI

Time:12-18

I'm a new learner on this platform.
I code a simple react native app using expo. But I want to build a .apk file.
I tried this command:

expo build:android

Then I sign up an expo account. After completing the building process it shows the download button.
Just like the following picture: enter image description here But its not apk file. It is .aab file.
So, I want to build an actual apk file.
How can I do that?

CodePudding user response:

By default Expo, CLI builds the app into a .aab file format. this format is better for Google Play Store as it will be optimized for every device CPU architecture which results in a smaller app size.

In case you want to test for your device or emulator, run:
expo build:android -t apk

CodePudding user response:

From expo documentation : When building for android you can choose to build APK (expo build:android -t apk) or Android App Bundle (expo build:android -t app-bundle).

  • Related