fix(apple): keep the Expo dev menu closed when open launches a dev client
Merged
IM
3d ago+135+135+012345678901234567890123456789-11-11-01234567890123456789
Summary
The Expo dev menu opens over the app at launch and takes every tap, so fill typed into nothing and the hint blamed the app.
- Launch: on an iOS simulator,
opennow addsdisableAutoLaunch=1next tourlon theexpo-development-clientURL it builds for a detected dev client. Expo documents this parameter for every SDK (development workflows); it also turns off the app's saved show-at-launch setting. The per-launch__expo_disable_auto_launch=1was rejected: SDK 57 lacks it, and so does the test app's 58.0.3 launcher. - Hint:
formatReactNativeOverlayWarningnames the open menu when the capture has aRuntime version:orSDK version:line plusReloadorGo home, text only. It says to press Close, and to adddisableAutoLaunch=1to a URL of your own. Android'ssnapshot -idrops the version line, so there the hint shows in the fullsnapshot. - Fill: an empty read-back now names an overlay.
Before / after
iPhone 17 Pro simulator (iOS 27.2), fresh install of the test app, Metro on 8081; Pixel 9 emulator (Android 16).
iOS $ open com.callstack.agentdevicelab --metro-port 8081 && snapshot -i
base: @e33 [text] "Runtime version: exposdk:58.0.0", @e51 [button] "Continue" (menu up)
head: app home, no menu
$ snapshot (menu open: iOS -i, Android full)
base: no hint
head: Hint: The Expo dev menu looks open. It takes every tap until it closes, so press its Close button first.
Validation
- Head
99f80e004,check:affected --run --head,exactCommit: true: format, lint, typecheck, layering, fallow, native-dupes, build and vitest-related pass;check:command-docspasses. - 10 new unit tests, plus 1 Swift unit test run on the simulator; the hint fixtures are text from the captured iOS and Android trees.
- 10 mutants on the trigger, the launch parameter and the fill hint each fail a test.