We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67fbdc2 commit ee6fc59Copy full SHA for ee6fc59
plugins/react-native.js
@@ -69,7 +69,12 @@ function reactNativePlugin(Raven) {
69
}
70
});
71
72
- ErrorUtils.setGlobalHandler(Raven.captureException.bind(Raven));
+ var defaultHandler = (ErrorUtils.getGlobalHandler && ErrorUtils.getGlobalHandler())
73
+ || ErrorUtils._globalHandler;
74
+ ErrorUtils.setGlobalHandler(function(...args){
75
+ defaultHandler(...args);
76
+ Raven.captureException(...args);
77
+ });
78
79
80
module.exports = reactNativePlugin;
0 commit comments