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 ee6fc59 commit f23a0caCopy full SHA for f23a0ca
plugins/react-native.js
@@ -71,9 +71,10 @@ function reactNativePlugin(Raven) {
71
72
var defaultHandler = (ErrorUtils.getGlobalHandler && ErrorUtils.getGlobalHandler())
73
|| ErrorUtils._globalHandler;
74
- ErrorUtils.setGlobalHandler(function(...args){
75
- defaultHandler(...args);
76
- Raven.captureException(...args);
+ ErrorUtils.setGlobalHandler(function(){
+ var error = arguments[0];
+ defaultHandler.apply(this, arguments)
77
+ Raven.captureException(error);
78
});
79
}
80
0 commit comments