This explains how it works to generate an APK using Expo and the reference is the official guide of expo
The first thing is to install the exp tool doing:
npm install -g exp
Then configure your app.json file
{
"expo": {
"name": "Your App Name",
"icon": "./path/to/your/app-icon.png",
"version": "1.0.0",
"slug": "your-app-slug",
"sdkVersion": "17.0.0",
"ios": {
"bundleIdentifier": "com.yourcompany.yourappname"
},
"android": {
"package": "com.yourcompany.yourappname"
}
}
}
You run the following command to test your project
exp start
If everything went well, now you execute the following command
exp build:android
At this point I will ask you if you have any keystore ready to generate your APK. If you have no idea what a keystore is, then choose Expo to manage the keystore for you.
After determining which keystore to use, you will generate an APK with the Expo infrastructure and it should take approximately 10 minutes
You can monitor your creation with the following command:
exp build:status
When you are ready, you will receive a link that will direct you to your APK download. This APK is now a release and you can use it to test on your devices even if you do not have an account in the Google Play Store.