Skip to content

Commit ecb8b0a

Browse files
committed
Trigger default error handler after sending an unhandled JS exception
1 parent b3db684 commit ecb8b0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/errorLogging/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export default () => {
3030
// https://github.com/getsentry/sentry-react-native/blob/adfb66f16438dfd98f280307844778c7291b584b/src/js/integrations/reactnativeerrorhandlers.ts#L235-L239
3131

3232
// Send exception to the host app.
33-
logException( error );
33+
logException( error, {}, () => {
34+
defaultHandler( error, isFatal );
35+
} );
3436

3537
// TODO: Wait for the exception to be sent to host app.
3638
defaultHandler( error, isFatal );

0 commit comments

Comments
 (0)