With EAS you can submit for review your React Native app, directly from terminal. No need to do it manually from the stores dashboards.
Prerequisites
For both iOS and Android you should have filled in the required fields and have created a new app from the dashboards. You can follow this guide to understand how to proceed for iOS, and this guide for Android.
Also, you must have installed the EAS CLI. You can refer to this guide to see how to proceed
iOS
For iOS you need to configure the eas.json
file as follow
"submit": {
"production": {
"ios": {
"appleId": "your.apple.id.username",
"ascAppId": "123456789",
"appleTeamId": "1AB2C3D45E"
}
}
}
Apple ID is the username of your Apple Developer Account, the email that you use to connect to your Apple account
ascAppID is the App Store Connect unique application Apple ID number. You can find it under App Information section when you created your app on App Store Connect
appleTeamId is your Apple Developer Team ID. You can find it under you Profile settings
When eas.json
file is configured correctly, open a terminal and run
eas submit --platform ios
That's all your app should be submitted for review. You can refer to the official documentation to get more information and configuration.
Android
For Android the steps are different, you need to create a Google Service Account and download its JSON private key
Prerequisite
Your Android app must have been submitted manually once before.
Create a Google Service Account
You need to connect to your Google Cloud Console, select your project and search for the Services Accounts section, then click Create Service Account
You can fill in the required fields as follow
Then you need to select a role for your service account. Choose Service Account User
and click Done
button.
When you are back on the services accounts dashboard you need to create a new key for your service account
And choose JSON format
You can download the json file and rename it as you want. I recommend name it service_account.json for better clarity.
Start the submission
Now that you have the JSON service account file you need to like it to your project. At the root of your project upload your service account json file
And configure your eas.json
file as follow
"submit": {
"production": {
"android": {
"serviceAccountKeyPath": "./service_account.json",
"track": "production"
}
}
}
Warning
Don't forget to add service_account.json file to your .gitignore !
You can now submit your app to Play Store
submit --platform android
You can refer to the official documentation for more information and configuration
Top comments (0)