App is stuck on Splash screen

From March 21 2022 onwards the builds pushed to TestFlight and Google Play are not working. The app is stuck on the splash screen. The older version(March 18 2022) of the app is working as expected.

  • Managed workflow
  • expo-cli-version: 5.3.0
  • eas-cli: our pipe-line still uses the expo-cli for building and uploading the app to TestFlight and Google Play
  • I have reset the code base to March 18 2022 and built again but no luck.
    Any help would greatly helpful.
  • The builds built for simulator are also not working.
  • The code is working fine on Expo-Go app.

Thanks,
Awadeyar

I tried debugging the app almost two days by following the above mentioned documentation. But no luck. The app works fine locally on expo go app and bare workflow as well. But it is not working when it built using commands expo build:android and expo build:ios

1 Like

Are you displaying a modal right after the app starts?

same here, expo go and simulator works fine, but when I do expo publish --release-channel staging or on testflight, the splashSreen does not go away. I do not see any error! please help!!

Hi @qqliang1996

Try running locally in production mode to see if you get more info about the problem:

expo start --no-dev --minify

Also check the device logs.

I had the same problem so I did code review on my code on github and found out that I was importing useState wrongly. Seems to have slipped on an auto import event.

import { useState } from 'react/cjs/react.development';
So I corrected to
import { useState } from "react";

In your case it might be different but I propose searching for any import from ....react.development and correct that.

I resolved it this way and now it works great!!!

1 Like

I have the same issue :frowning:

My issue is similar but only when I enable remote JS debug (that opens Chrome’s DevTools). If I disable this option, the Splash Screen does not get stuck anymore. So kinda weird that it’s only an in-debug mode. FWIW, I am still using expo-app-loading while on SDK 45.

actually, i resolve that by problem by using strict mode, tsconfig.ts.
i changed strict to true then the app works fine.

{
  "extends": "expo/tsconfig.base",
  "compilerOptions": {
    "strict": true,
    "module": "esnext",
  }
}

Same issue here. Android version is stuck on splash screen when deployed, but works on emulator, even when using expo start --no-dev --minify.

SDK 45 managed workflow.

Tried to change the build in a few ways and re-deploy it three times now but same issue.
IDK what to do.

Try the other things suggested in the Debugging docs (see Adam’s post from March).

In particular, see if you’re getting anything in the native logs.

Switching the JavaScript engine from JSC to Hermes (or vice versa) might give you some sort of error message you can use to help figure out what’s wrong.

See also expo.fyi/manual-debugging