[r] only when native dependencies change.
For build and upload steps, see Expo Build Guide.
How detection works
The CLI looks for two things in the current directory:"expo"inpackage.jsondependencies or devDependencies- At least one project indicator:
app.json,app.config.js,app.config.ts,eas.json, or.expo/directory
URL schemes
Hot reload deep-links the dev client to your local Metro server via a custom URL scheme:myapp://) registered in the dev client binary.
Where to find your scheme
Checkapp.json under expo.scheme:
app.config.js / app.config.ts:
revyl init and stores it as hotreload.providers.expo.app_scheme in .revyl/config.yaml.
Why universal links don’t work
Apps that only use universal links (https://example.com/...) for deep linking cannot use those for hot reload. Apple’s associated domains system requires a live HTTPS domain serving an apple-app-site-association file. Revyl hot reload uses short-lived relay hosts that are not suitable as stable associated domains. Custom URL schemes (myapp://) bypass this entirely — no server verification needed.
No URL scheme in the app
If your app has noexpo.scheme (common in apps that only use universal links), you need to add one. The name is arbitrary and only affects the dev client:
app_scheme: myapp-dev in .revyl/config.yaml.
Checking existing schemes without rebuilding
The dev client may already have a scheme registered byexpo-dev-client. Check the iOS build:
exp+myslug, you can use that scheme in your config without rebuilding.
The use_exp_prefix option
Expo dev clients can register URL schemes in two formats:
- Base scheme:
myapp://— registered whenexpo.schemeis set in app.json - Prefixed scheme:
exp+myapp://— auto-registered byexpo-dev-clientbased on the app slug
use_exp_prefix in your config:
expo.scheme field in app.json defines the base scheme, but whether expo-dev-client also registers exp+<scheme>:// depends on the Expo SDK version and the addGeneratedScheme setting at build time. Since there’s no way to query this at runtime, the config toggle is the escape hatch.
Monorepo setup
In monorepos (Turborepo, Nx, pnpm workspaces), the Expo app typically lives in a subdirectory likeapps/native/, apps/mobile/, or packages/app/.
Run from the Expo app directory
All Revyl commands must run from the directory containing the Expo app’spackage.json — not the monorepo root.
FindRepoRoot, which walks up from the current directory looking for .revyl/. If the monorepo root also has a .revyl/ directory (common for CI test configs), make sure you’re in the correct subdirectory.
Why detection fails in monorepos
Two things go wrong:-
Hoisted dependencies — Package managers like pnpm, Yarn, and npm may hoist
expoto the rootnode_modules/or useworkspace:*protocol in the localpackage.json. The Expo provider reads the localpackage.jsonand checks for"expo"independenciesordevDependencies. If it’s not there, the provider returns nil (no match). -
Native directories match other providers — Every Expo project with prebuild has
ios/containing.xcodeprojfiles (triggering the Swift provider at confidence 0.7) andandroid/containingbuild.gradle(triggering the Android provider at confidence 0.6). When the Expo provider returns nil, these become the top matches.
revyl init detects “Swift/iOS (coming soon)” and “Android (coming soon)” instead of Expo.
Fix: Use --provider expo to bypass auto-detection:
expo is genuinely missing from the local package.json, add it:
Example hotreload config for a monorepo app
What to expect when the deep link opens
Afterrevyl dev starts, the CLI opens a deep link to connect the dev client to your local Metro server. You may notice:
- A confirmation dialog — iOS shows “Open in [Your App]?” with Cancel and Open buttons. This is a standard iOS security prompt for URL scheme handoffs. Tap Open to proceed. (On cloud simulators this currently requires a manual tap; future CLI versions will auto-accept it.)
- The app briefly restarts — The dev client may close and reopen as it disconnects from its cached state and reconnects to the tunnel URL. This looks jarring but is normal Expo dev client behavior. The app is reloading to fetch the JS bundle from your local Metro server instead of its built-in bundle.
- Sometimes no restart at all — If the dev client is already in a fresh state (first launch after install), it may connect seamlessly without closing. The behavior varies by Expo SDK version and whether the app was previously running.
Dynamic config (app.config.js / app.config.ts)
The CLI reads the URL scheme fromapp.json at expo.scheme. If the project uses app.config.js or app.config.ts instead, the CLI cannot auto-detect the scheme because evaluating arbitrary JavaScript is out of scope.
The scheme is the custom URL prefix baked into the Expo dev client, such as
myapp-dev://. Revyl uses it to open the installed dev client on the cloud
device and connect it to Metro for hot reload.
Provide the scheme explicitly during init:
.revyl/config.yaml after init:
revyl dev without another build.