From ecb8b0ab853b110fed3807d16f1bbfe8681eaabe Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 23 Feb 2024 19:15:31 +0100 Subject: [PATCH] Trigger default error handler after sending an unhandled JS exception --- src/errorLogging/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/errorLogging/index.js b/src/errorLogging/index.js index 6f095d5148..4842d19973 100644 --- a/src/errorLogging/index.js +++ b/src/errorLogging/index.js @@ -30,7 +30,9 @@ export default () => { // https://github.com/getsentry/sentry-react-native/blob/adfb66f16438dfd98f280307844778c7291b584b/src/js/integrations/reactnativeerrorhandlers.ts#L235-L239 // Send exception to the host app. - logException( error ); + logException( error, {}, () => { + defaultHandler( error, isFatal ); + } ); // TODO: Wait for the exception to be sent to host app. defaultHandler( error, isFatal );