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.
2 parents 3696f5e + f23a0ca commit b98f32fCopy full SHA for b98f32f
plugins/react-native.js
@@ -71,7 +71,13 @@ function reactNativePlugin(Raven) {
71
}
72
});
73
74
- ErrorUtils.setGlobalHandler(Raven.captureException.bind(Raven));
+ var defaultHandler = (ErrorUtils.getGlobalHandler && ErrorUtils.getGlobalHandler())
75
+ || ErrorUtils._globalHandler;
76
+ ErrorUtils.setGlobalHandler(function(){
77
+ var error = arguments[0];
78
+ defaultHandler.apply(this, arguments)
79
+ Raven.captureException(error);
80
+ });
81
82
83
module.exports = reactNativePlugin;
0 commit comments