'How to use your expo React Native app offline without running in Terminal?
Hello I am new into learning React Native, Lately I'm on building pdf reader, I wonder if there is anyway Running my react native app while I am outside without having have to start the app on the terminal without publishing it? I use Expo client.
Solution 1:[1]
Expo
To the best of my knowledge, expo requires a server running to open your app via "expo go".
If you want to access your app without wifi/cable you could either
- Use a tunnel URL
This way your phone can connect back to your PC so long as you both have internet - without having to share a local wifi network. To start a tunnel you can press "d" to open developer tools, and then select "tunnel" from the connections menu.
- Publish the app to expo
By publishing the app to expo you can get a permanent URL to your app. You don't need to keep you PC running.
React
If you don't mind leaving expo, you can do a standard react native build. This will install the app to your device and from there - you don't need internet anymore. The details change a bit depending on your os, but here is a guide: https://reactnative.dev/docs/running-on-device
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Inbar Koursh |
