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 crashes resulting from react-native-screens Activity restart on Android #5105

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

jinchung
Copy link
Member

@jinchung jinchung commented Oct 7, 2023

As per the react-native-screens documentation on Android setup: Discards any Activity state persisted during the Activity restart process, to avoid inconsistencies that lead to crashes.

Linear ticket has broader context

Fixes APP-850

Requires this update to android preinstall hook: https://github.com/rainbow-me/rainbow-scripts/pull/133

Android

As per the react-native-screens documentation on Android setup:
Discards any Activity state persisted during the Activity restart process,
to avoid inconsistencies that lead to crashes.
@@ -10,7 +10,6 @@
import me.rainbow.NativeModules.RNBackHandler.RNBackHandlerPackage;
import me.rainbow.NativeModules.Internals.*;
import android.webkit.WebView;
import com.facebook.react.ReactActivityDelegate;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing as there is a duplicate on line 6

@jinchung jinchung marked this pull request as ready for review October 8, 2023 19:09
@jinchung jinchung requested a review from brunobar79 October 8, 2023 19:10
@jinchung jinchung merged commit a2e63e0 into develop Oct 10, 2023
@jinchung jinchung deleted the @jin/android-rnscreens-mainactivity branch October 10, 2023 18:12
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