fix(apple): keep the Expo dev menu closed when open launches a dev client

Merged
IM
3d ago
+135-11

Summary

Closes #5003. Follows #5013.

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, open now adds disableAutoLaunch=1 next to url on the expo-development-client URL 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=1 was rejected: SDK 57 lacks it, and so does the test app's 58.0.3 launcher.
  • Hint: formatReactNativeOverlayWarning names the open menu when the capture has a Runtime version: or SDK version: line plus Reload or Go home, text only. It says to press Close, and to add disableAutoLaunch=1 to a URL of your own. Android's snapshot -i drops the version line, so there the hint shows in the full snapshot.
  • 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-docs passes.
  • 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.