Device development and networking
The default form0.config.js starts Expo on the local network. A physical device must be able to
reach the development computer and port 8081. Host firewalls, isolated Wi-Fi networks, VPNs, and
container networking can prevent that connection.
Start through form0-cli
Use the application-server integration when working from the form0 CLI:
Code
The CLI reads the devServer block in form0.config.js. Full command behavior belongs to the
app development server reference.
Scan the QR code that Expo prints with your phone. In the interactive shell, press Enter once it appears to return to the form0 prompt.
Advertise a public development URL
When LAN access is unavailable, set the configured environment variable in .env.local:
Code
Start the tunnel separately, then run form0 serve --app. For one run, use
--public-url https://your-development-domain.example.
The URL must serve the Expo manifest, bundle, assets, and WebSocket traffic directly. Browser interstitials and access-challenge pages break Expo clients. Never treat a development tunnel as a production deployment or place privileged credentials in the mobile bundle.
Use a development build for production-oriented work or custom native code. Expo Go is an optional learning and evaluation client when a compatible SDK build is available for the target platform.
Expo CLI tunnel
For Expo's built-in SDK 58 tunnel, sign in locally and start Expo:
Code
The SDK 58 tunnel uses your Expo account and does not require @expo/ngrok. If you need the
legacy provider, use npm start -- --tunnel ngrok with @expo/ngrok installed. This is separate
from the public URL advertised by form0 serve --app.
See the SDK 58 tunnel guidance.