React Native course · Module 12: Publishing the app

Pre-publication checklist

1 min read ·
In this lesson5

1. Icons and splash screen

assets/
├── icon.png           # 1024x1024 (App Store, Play Store)
├── adaptive-icon.png  # 1024x1024 (Android adaptive)
├── splash.png         # 1284x2778 (splash screen)
└── favicon.png        # 48x48 (web)

2. Metadata

{
  "expo": {
    "name": "Atlantis",
    "description": "Discover the underwater world of Atlantis",
    "version": "1.0.0",
    "ios": {
      "bundleIdentifier": "com.company.atlantis",
      "buildNumber": "1",
      "infoPlist": {
        "NSCameraUsageDescription": "We use the camera for...",
        "NSLocationWhenInUseUsageDescription": "We use location for..."
      }
    },
    "android": {
      "package": "com.company.atlantis",
      "versionCode": 1,
      "permissions": ["CAMERA", "ACCESS_FINE_LOCATION"]
    }
  }
}

3. Environment variables

# .env.production
API_URL=https://api.atlantis.app
APP_ENV=production

# Use in eas.json
{
  "build": {
    "production": {
      "env": {
        "APP_ENV": "production"
      }
    }
  }
}

4. Testing before publication

# Preview build
eas build --profile preview --platform all

# Test on real devices!

5. Publication

# Build production
eas build --profile production --platform all

# Submit
eas submit --platform all --latest

Congratulations! Your app is ready for publication!

Spotted a mistake in this lesson?

Check yourself

Answer the questions from this lesson. Pick an answer to see right away whether it is correct.

  1. 1. What size should icon.png be?

  2. 2. What is adaptive-icon.png used for?

These are 2 of 3 questions for this lesson. Solve the rest in the game.

  1. QuestionIcon requirements
  2. Questionadaptive-icon
  3. QuestionversionCode
  4. Project to submitProject: Publication
  5. VideoModule summary

Useful articles