How to create .apk file with React Native with expo

There are few steps, we should do to create a .apk file as below,

  1. Install Expo CLI
  2. Configure app.json
  3. Start the build
  • Install Expo CLI Expo CLI is the tool for developing and building Expo apps. Run npm install -g expo-cli to install it.
  • Configure app.json
   "expo": {
    "name": "Your App Name",
    "icon": "./path/to/your/app-icon.png",
    "version": "1.0.0",
    "slug": "your-app-slug",
    "sdkVersion": "XX.0.0",
    "ios": { "bundleIdentifier": "com.yourcompany.yourappname"
    },
    "android": {
      "package": "com.yourcompany.yourappname"
    }
   }
 }
  • Start the build Run expo build:android or expo build:ios. If you don't already have a packager running for this project, expo will start one for you. on successful build, we can download the .apk file for android.