expo / expo/eas-cli

white screen on Expo Updates

Open
#2,292 5 comments 0 reactions 0 assignees View on GitHub
eas update needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

https://expo.dev/accounts/pnt-mobile/projects/pnt-mobile-v2/submissions/8d921270-fa2c-4531-8595-eb1d0c36aa8f

### Summary

Using Expo Update, when receiving updates/Checking for updates, a WHITE SCREEN appears? I found a similar error `https://stackoverflow.com/questions/70705994/expo-api-for-app-updates-resulting-in-blank-white-screen` In my case I have the following error, whenever there are updates the project starts checking for updates, leaving the screen blank for a few seconds, after which it is directed to the project's home screen, without the need to close the project on Android

I am running update check in app.ts with the following code.
![codeUpdate](https://github.com/expo/eas-cli/assets/42808798/45d947b9-0031-423f-8ab2-817291830c32)

`useEffect(() => {
async function onFetchUpdateAsync() {
try {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
} catch (error) {
console.log(`Error fetching latest Expo update: ${error}`);
}
}
if (!__DEV__) {
onFetchUpdateAsync();
}
}, []);`

![codeUpdate](https://github.com/expo/eas-cli/assets/42808798/241add89-fa25-4511-bba6-55eefcdda3d3)

### Managed or bare?

managed

### Environment

WARNING: We recommend using PowerShell or Bash via WSL 2 for development with Expo CLI on Windows. You may encounter issues using cmd.exe.

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

### Error output

_No response_

### Reproducible demo or steps to reproduce from a blank project

Using Expo Update, when receiving updates/Checking for updates, a WHITE SCREEN appears? I found a similar error `https://stackoverflow.com/questions/70705994/expo-api-for-app-updates-resulting-in-blank-white-screen` In my case I have the following error, whenever there are updates the project starts checking for updates, leaving the screen blank for a few seconds, after which it is directed to the project's home screen, without the need to close the project on Android

However, when running "npx expo-doctor" to check the project configuration and compatibility of dependencies with the Expo SDK, I got this return.
![codeUpdate](https://github.com/expo/eas-cli/assets/42808798/13926cc8-8b59-4057-a4e1-c8fe6abfacc7)

I am running update check in app.ts with the following code

`useEffect(() => {
async function onFetchUpdateAsync() {
try {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
} catch (error) {
console.log(`Error fetching latest Expo update: ${error}`);
}
}
if (!__DEV__) {
onFetchUpdateAsync();
}
}, []);`


![codeUpdate](https://github.com/expo/eas-cli/assets/42808798/94298b02-e0d8-4373-8c3f-c0ceb18374a5)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.