Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix android reload reentrant issue #39

Conversation

Kudo
Copy link

@Kudo Kudo commented Nov 5, 2024

Why

close ENG-14048

How

terminate packager connection right after triggering reload

Copy link

linear bot commented Nov 5, 2024

@Kudo Kudo requested a review from alanjhughes November 5, 2024 16:51
@Kudo Kudo merged commit 8e3acb6 into sdk-52-0.76.0 Nov 5, 2024
33 of 45 checks passed
@Kudo Kudo deleted the @kudo/eng-14048-expo-go-for-android-sometimes-gets-stuck-on-loading-screen branch November 5, 2024 17:17
Kudo added a commit to expo/expo that referenced this pull request Nov 5, 2024
# Why

fix the issue when long-press `r` in cli and makes expo-go stuck in
loading view

# How

- call `destroyReactHost` on `ReactNativeActivity.onDestroy`. we did
similar destroy on [bridge
expo-go](https://github.com/expo/expo/blob/001ecb0bb73af35571b6f6429d046f552cf0ffcd/apps/expo-go/android/expoview/src/main/java/host/exp/exponent/experience/ReactNativeActivity.kt#L301)
as well.
- since the multi-activity expo-go will destory the current activity,
the `destroyReactHost` should destroy ReactHost instance.
- prevent "home" react instance create a packager connection. we should
use `ReleaseDevSupportManager` for "home" in production build.
- remove unused code in VersionedUtils.kt
- also expo/react-native#39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants