fix(mobile): iPhones on iOS 27.2 beta no longer open to a black screen #18654
main fromrefs/pull/18654/head·merged by shivamhwp(GitHub profile, opens in a new tab) View on GitHubCloses: no GitHub issue yet. Reported on X: https://x.com/icantcodefyi/status/2109548888516681987 (a second tester replied that the TestFlight build does the same).
Problem#
On a regular iPhone running an iOS 27.2 developer beta, the app shows the splash for a moment and then stays on a black screen. Reinstalling doesn't help.
Why#
The Duo support in #12648 made the layout observer wait for a hinge update on iOS 27.1 and later before it reports any layout metrics. The navigator draws nothing until those metrics arrive.
UIKit only sends hinge updates on devices that have a hinge. A regular iPhone on iOS 27.2 runs the 27.1 code path but never gets a hinge update, so the app waits forever on an empty window.
iOS 27.1 itself only ships on the Duo. iOS 27.2 developer betas have been out for regular iPhones since September, though, and that's where testers hit this.
Fix#
- Native: if no hinge update arrives within 0.25s of the observer joining a window, assume there's no hinge and publish metrics. A Duo still switches to its fold layout when its hinge update comes in. This needs a new binary.
- JS: if no metrics arrive within 1s, use the phone navigator instead of drawing nothing. On fixed binaries the native side answers first, so this timeout never pre-empts the Duo's detection.
Because this PR changes native code, merging it cuts a new store build, and the OTA only reaches binaries with the new fingerprint. The JS fallback does not reach builds 116–120 as part of this PR. To unstick those binaries over the air, the JS change has to land on its own first.
Evidence#
Recordings are cold launches of the production Release build on an iPhone 17 Pro simulator, paired with an environment. The native observer is forced into the state a regular iPhone on iOS 27.2 reaches: hasHinge stays nil and no hinge update arrives. That is the only change from shipping code in the "before" run.
Before (main) | JS fix only (OTA path) | Full fix |
|---|---|---|
![]() | ![]() | ![]() |
| Splash, then black forever. Same as the reporter's video. | Black for about a second, then the thread list. | Thread list as soon as the splash goes. |
iPhone Duo on iOS 27.1, built with Xcode 27.1 and the real hinge code, with this fix:

The hinge update arrived 58 ms after the observer attached, so the 0.25s fallback never fired, and the Duo opened in its fold layout with the toolbar on the vertical bar edge. (The launcher and "Downloading" bar at the start are dev-client chrome.)
The reporter's video, for comparison:

Testing#
- Forced repro in a production Release build, before and after, as recorded above. Each half of the fix was checked on its own.
- iPhone Duo on iOS 27.1 with the real hinge code, as above.
- Production Release build on an iPhone running iOS 27.0: fresh install, paired, reinstall with the keychain kept, and computer offline all draw normally. 27.0 never runs the hinge code.
- Mobile typecheck and lint pass.
Not tested#
- A real iOS 27.2 runtime. No simulator here has iOS 27.2 for regular iPhones; that needs the Xcode 27.2 beta.
- Real Duo hardware. The simulator reported its hinge in 58 ms; hardware should be similar, but if it were slower than 0.25s a folded cold launch would briefly show the phone layout and then switch.
Separately, Xcode 27.1 RC can't build the app out of the box. The prebuilt ExpoModulesJSI.swiftinterface marks Bool's JavaScriptRepresentable conformance @available(*, unavailable), and the RC compiles that interface instead of loading the binary module. I removed that attribute locally (not in this PR) to run the Duo test. EAS builds may hit this once the build image moves to the RC.
Claude Opus 5.5 via Claude Code, running in T3 Code.
🤖 Generated with Claude Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Approvability#
Verdict: Approved at
1b8204cMacroscope's review found this PR approvable — This is a focused mobile startup bug fix that restores native layout metrics on ordinary iPhones and falls back to the existing compact navigator when metrics remain unavailable. Its runtime impact is limited to initialization and navigator selection, with no product-default, schema, infrastructure, or static-analysis changes.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0a920238-fcef-4ade-858c-28cf293a3752
📥 Commits
-
Reviewing files that changed from the base of the PR and between 5753207d53362608f281738eda3a9faf4e13b6be and 1b8204c190c4b4b2fc133325c4b2e5eee9ef6f9e.
📒 Files selected for processing (2)
-
apps/mobile/modules/t3-native-controls/ios/T3LayoutMetricsView.swiftapps/mobile/src/native/NativeWorkspaceColumns.ios.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
📝 Walkthrough
-
📝 Walkthrough
-
📝 Walkthrough
-
Walkthrough#
The iOS layout view now publishes metrics with a no-hinge fallback when hinge status remains unknown. The workspace columns readiness hook waits for native metrics under specified conditions, with a 1,000 ms timeout.
Changes#
iOS Metrics Readiness
Layer / File(s) Summary Native no-hinge fallback
apps/mobile/modules/t3-native-controls/ios/T3LayoutMetricsView.swiftAfter 0.25 seconds, the view sets hasHingeto false and publishes metrics if it remains attached to a window and hinge status is still unknown.Workspace metrics readiness
apps/mobile/src/native/NativeWorkspaceColumns.ios.tsxThe readiness hook waits when the platform is not an iPad, a native metrics observer exists, and metrics are null. It reports ready when metrics arrive or the 1,000 ms timeout expires. Otherwise, it reports ready immediately. Priority: ⬆️ High
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Bug fix
Suggested reviewers:
juliusmarminge
-
-
Merge Risk: ⚪ Minimal · up to
1b820The change bounds startup waiting and allows later hinge metrics to update workspace layout. No actionable merge-blocking failure is established by the available evidence.
Security Architecture Review
Security architecture risk: 🔵 Low · up to
1b820The change is confined to recovering the mobile interface when device layout information is missing. Existing capability checks remain in place, but timing on hinged devices and compatibility across app versions have not been validated.
Retained concerns No architecture-level concerns identified.
-
Security review details
-
Security Blast Radius
- inferred — The demonstrated exposure is within the mobile process: UIKit layout state crosses the existing native event bridge into navigation presentation. The inspected changes introduce no new network, tenant, credential, or persistent-data interface; this conclusion is limited to the reviewed layout flow.
Trust Boundaries and Controls
- inferred — The released gate is a layout-readiness decision, not an authorization decision in the inspected implementation. Navigation state is built before the gate, and the timeout neither supplies routes nor overrides the separate native-column capability check. The public-entrypoint labels therefore do not themselves establish newly attacker-controlled reachability.
Resilience and Maintainability Implications
- inferred — The native timer is not tied to a particular window attachment. Rapid detachment and reattachment can let an earlier timer choose provisional no-hinge state before the new attachment's deadline. Counterevidence limits this to a timing uncertainty: resolved state is not overwritten, false grants no hinge orientation capability, and later hinge detection republishes true state. No material security consequence is established.
-
Pre-merge checks |
4-
✅ Passed checks (4 passed)
-
Check name Status Explanation Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Title check The title clearly identifies the mobile black-screen fix for iPhones running iOS 27.2 beta. Description check The description explains the problem, root cause, native and JavaScript changes, scope, evidence, testing, and known limitations. It does not use the exact template headings and does not provide a tri…
-
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.-
shivamhwp(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.



macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes