Open In App

How to Convert an Expo App to Apk in React Native for Android

React Native is a cross-platform application that is used to build Android as well as IOS applications. It uses JavaScript as the standalone language for development. It is a JavaScript framework based on React, an open-source library that makes React native easy to learn. In this article, we will see how to convert an expo app to Apk in React-Native. Expo is used to run your React Native applications.

Steps to Convert an Expo App to Apk in React Native for Android:

Step 1: Installing EAS CLI

Go to your project directory open your terminal and run the below command.



npm install -g eas-cli

Expo Application Services (EAS):

EAS will help you to create a binary or final APK of your app that is ready to be submitted to the Google Play Store or Apple App Store.

Step 2: Expo account Login

If you are already logged in, then you can skip the step and run the Step 4 command. Else run the following command.



eas login

Run command eas whoami to check you are logged in or not.

Step 3: Create a build

eas build --platform android

Step 4: Open Expo account

Step 5: Convert .aab file to .apk

Step 6 : Open command prompt.

java -jar bundletool.jar build-apks --bundle=filename.aab --output=newfilename.apks --mode=universal

Article Tags :