5

I looked over the docs, but cannot find a way to run Expo completely offline. I'm frequently in an area without a stable connection and this makes it exceptionally difficult to maintain a proper work flow.

I would have thought that exp start --dev --lan would enable offline development, but my expo client still fails on inability to connect to the expo servers.

Is there a truly offline mode for expo?

3 Answers3

6

In order to load the bundle

expo start --offline

will work. For running it on an Android device make sure to check if your device is listed in adb available devices by running

adb devices

You can make the connection with your adb device either by connecting it through wire or attaching the bridge wirelessly. Instructions for help!

Safeer
  • 1,407
  • 1
  • 25
  • 29
4

With the latest version of Expo (v32) you can run offline by using the following command

expo start --offline
lifeofmle
  • 332
  • 2
  • 11
  • 4
    Is it possible to run the app when your phone is offline? It doesn't work for me with just the offline-flag. – Kikkomann Mar 25 '19 at 17:31
0
  1. If you experience issues when testing offline try starting the Expo packager with the command yarn start --offline command and then in Expo dev tools set the connection type to "local".
  2. Or you can also use expo start --offline.
Aahad
  • 507
  • 4
  • 13
  • I've started using expo start --offline as suggested but in iOS simulator the connection stays on, not really offline – Butri Sep 21 '21 at 16:02