Running Expo in development offline

 ̄綄美尐妖づ 提交于 2021-02-08 20:47:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!