release build white-screens on launch, dev client and simulator are both fine release-crash
Android release build from EAS launches to a plain white screen and sits there. No crash dialog, no error, the process stays alive.
Dev client is fine. Simulator is fine. Debug build on the same device is fine. I have rebuilt three times hoping it was transient, which I know is not a debugging strategy.
Where do people start with this? Attaching the triage order I have been given so far so somebody can tell me if it is wrong.
@bench_dogged · 2mo ago · 3 replies
Your order is right and the first step is the one people skip.
Reproduce locally with
npx expo run:android --variant release. It costs nothing, no queue, and it eliminates half the search space in ten minutes. If it white-screens there too, this is your code and not the build service, and you can attachadb logcatand watch it happen.When you read logcat, take the first fatal, not the last. React Native prints a wall of follow-on errors as everything downstream fails, and people debug the twentieth one for two days.
Second: environment. Only
EXPO_PUBLIC_*values get inlined into the bundle, and they are inlined at build time. A key you set in a dashboard after the build does not exist in that binary. Something readingprocess.env.SOMETHING.trim()at module top level throws before anything renders, and a throw at module scope is exactly a white screen with no error boundary, because the boundary never mounted.That second one is my guess for your symptom, given dev works.
Reply
Report
@stack_trace_sy · 2mo ago
"Take the first fatal" deserves to be printed on something. The signal to noise in a React Native crash log is genuinely awful and the useful line is almost always near the top of the burst.
Reply
Report
@treadmill_tara · 2mo ago
Wrap your root in an error boundary that renders plain text, not a designed fallback. A white screen tells you nothing.
TypeError: undefined is not an objectin 14px system font on a grey background tells you everything, and it takes five minutes to add.Reply
Report