mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix RNTester not showing Redbox when Metro is not connected (#41191)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41191 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 fbshipit-source-id: f269091c1745a76b49e72d9051c4836a39fded12
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e21b5b08c
commit
b67bc3ffd3
+3
@@ -638,6 +638,9 @@ public class ReactHostImpl implements ReactHost {
|
||||
final String method = "handleHostException(message = \"" + e.getMessage() + "\")";
|
||||
log(method);
|
||||
|
||||
if (DEV) {
|
||||
mDevSupportManager.handleException(e);
|
||||
}
|
||||
destroy(method, e);
|
||||
mReactHostDelegate.handleInstanceException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user