Repository navigation
feature(react-native): report react render errors that no error boundary catches - #409
Merged
Merged
Conversation
# Conflicts: # packages/react-native/android/src/main/java/backtrace/library/BacktraceAndroidBackgroundUnhandledExceptionHandler.java
KishanPRao
changed the base branch from
main
to
bugfix/android-fatal-js-double-report
October 7, 2026 11:18
KishanPRao
marked this pull request as ready for review
October 7, 2026 14:05
melekr
approved these changes
Oct 7, 2026
# Conflicts: # .github/scripts/android-js-fatal.sh # .github/scripts/ci-crash-driver.js # .github/workflows/android.yml # packages/react-native/src/handlers/UnhandledExceptionHandler.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Render errors that no error boundary catches now produce one crash report with the JS stack and the component stack, instead of a native crash report without JS frames.
Changes
UnhandledExceptionHandler.ts: report render errors that no error boundary catches, attach the component stack, restore React Native's handler on dispose.exceptionsManagerHelper.ts: new, find React Native's exception handler on every supported version.renderErrorHandlerTests.spec.ts: new, cover uncaught and caught render errors, debug builds, dispose and re-init.renderErrorRendererTests.spec.ts: new, throw during a real render on the old and New Architecture, and on the React 18 path.exceptionsManagerHelperTests.spec.ts: new, cover both module shapes and a missing module.ci-crash-driver.js: add a deep link that throws during render outside the app's error boundary, log each stored report's type and threads.android-js-fatal.sh: add a render error mode, check the report type and the component stack.android.yml: run the render error check on both architectures.Note
Depends on #408, merge after.
ref: BT-7713