Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: Generate .apk and .ipa using Expo

I'm trying to generate a .ipa and a .apk file for my React Native app using Expo & Create React Native App. I successfully built the app and was able to get it to run on both an iOS & an Android device thanks to the docs: https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps.html

When the build is over, my console shows something like

Your URL is https://exp.host/@myname/myapp

I then open exp.host/@myname/myapp on my device and the app shows up via the Expo client.

But at point 4 of the docs, it is said that

When it’s done, you’ll see the url of a .apk (Android) or .ipa (iOS) file — this is your app.

I'm a bit confused. No where in the process do I see any ipa or apk file generated anywhere on my pc. Am I missing something ? How do I actually generate the files ?

like image 761
clems36 Avatar asked Jun 01 '17 07:06

clems36


3 Answers

make sure in app.json

{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },
    
    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}

then run expo build:android or expo ba

after that

run expo build:status you'll find, something like this, the Apk's is hosted on amazon aws

[exp] Android:
[exp] APK: https://HOST/yourapp.apk
like image 64
Ansyori Avatar answered Nov 11 '22 12:11

Ansyori


You will need to run expo build:status. When building process is complete you will see link to download apk (Android) or ipa(IOS) file.

like image 39
2r83 Avatar answered Nov 11 '22 12:11

2r83


  • use `expo build:android` for android
  • use `expo build:ios` for ios

it will ask to create new account if you don't have an expo account expo build:status to know status of your app & the queued app may take around 30 mins to generate apk file .
you can find it in expo website

how to generate apk/ios file from expo

like image 6
Romil Jain Avatar answered Nov 11 '22 12:11

Romil Jain