问题
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?
回答1:
With the latest version of Expo (v32) you can run offline by using the following command
expo start --offline
回答2:
In order to load the bundle
expo start --offline
will work. For running it on and 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!
来源:https://stackoverflow.com/questions/50423562/running-expo-in-development-offline