Skip to content

Commit

Permalink
Fix RNTester not showing Redbox when Metro is not connected
Browse files Browse the repository at this point in the history
Summary:
In dev mode, display a Redbox for the first fatal error during RN initialization. So if the first fatal error is Metro not connected that will be displayed via Redbox.

Changelog:
[Android][Changed] - Fix RNTester not showing Redbox when Metro is not connected

Reviewed By: cortinico

Differential Revision: D50600631
  • Loading branch information
luluwu2032 authored and facebook-github-bot committed Oct 25, 2023
1 parent 7e26e02 commit ce8acfb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
final String method = "handleHostException(message = \"" + e.getMessage() + "\")";
log(method);

if (DEV) {
mDevSupportManager.handleException(e);
}
destroy(method, e);
mReactHostDelegate.handleInstanceException(e);
}
Expand Down

0 comments on commit ce8acfb

Please sign in to comment.