Skip to content

Commit

Permalink
Trigger default error handler after sending an unhandled JS exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Feb 23, 2024
1 parent b3db684 commit ecb8b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/errorLogging/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ecb8b0a

Please sign in to comment.