11

Is there any way I can use expo eas build fully offline without requiring an Internet connection.

Maybe an offline package or ...

Icekid
  • 435
  • 3
  • 14

2 Answers2

7

You can just run eas build with --local param like eas build --platform android --local or eas build --platform ios --local (note, --platform all is not allowed in this case).

Its in the documentation: https://docs.expo.dev/build-reference/local-builds/ (altought I found this question first)

Luca Kiebel
  • 9,790
  • 7
  • 29
  • 44
termitavee
  • 157
  • 2
  • 11
0

For others that end up here:

First you need to generate the native app files by executing expo prebuild:

npx expo prebuild

To directly run the build have a device connected or an emulator running:

npx react-native run-android --mode="release"

Build with:

npx react-native build-android --mode=release

For signing the apk for release, follow the instructions on react natives website: https://reactnative.dev/docs/signed-apk-android

Daidon
  • 581
  • 1
  • 3
  • 14