Back

expo stuck on splash screen after build

  • 0
  • Android
  • React Native
Kasim Saifi
19 Oct, 2024, 10:23

Can anyone help me with an issue in my Expo app? After logging in and redirecting to the homepage, the app gets stuck on the splash screen. This issue only occurs after building the APK—everything works fine in Expo Go

TL;DR
Developers having issues with an Expo app getting stuck on the splash screen after logging in and redirecting to the homepage post-build. The redirection works fine in Expo Go but not in the release build. The developer is using `router.replace("(tabs)/")` with Expo Router SDK51. To troubleshoot, they are advised to check navigation code, remove the splash screen code in `app.json`, try installing `pager view`, and ensure proper setup of tabs for swipe functionality.
Axistro
19 Oct, 2024, 10:23

Provide better context. Lets say you just installed the app. Now tell me what happens when you login

Axistro
19 Oct, 2024, 10:25

And can you provide the navigation code?

Kasim Saifi
19 Oct, 2024, 10:27

I am using router.replace("(tabs)/"), and it works perfectly with Expo Go. However, after building the APK and installing it, the login screen displays correctly, but after logging in, the app gets stuck on the splash screen. In Expo Go, the redirection works as expected, but in the release build, it's not behaving the same.

Kasim Saifi
19 Oct, 2024, 10:28

I'm using expo-router sdk51

Axistro
19 Oct, 2024, 10:28

I am asking what do you mean by splash screen. Like a blank white screen?

Axistro
19 Oct, 2024, 10:28

And did you used material top tabs import for tabs?

Axistro
19 Oct, 2024, 10:28

Like to make the tabs swipe able?

Kasim Saifi
19 Oct, 2024, 10:29

I'm using expo router default tabs

Kasim Saifi
19 Oct, 2024, 10:30

Actual splash screen not blank

Axistro
19 Oct, 2024, 10:32

This shouldnt happen But try dont using the splash screen. Like Removing the code from app.json also Try installing pager view

Axistro
19 Oct, 2024, 10:33

And i am giving you a git repo Try to match the code with yours

Kasim Saifi
19 Oct, 2024, 10:33
Kasim Saifi
19 Oct, 2024, 10:35

Okay got it

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more