Skip to content

Commit f2a64bd

Browse files
committed
Merge pull request #469 from getsentry/GH-468
Fix bad `this` value in React native plugin (fixes #468)
2 parents 6f840ec + 1c40c7d commit f2a64bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/react-native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function reactNativePlugin(Raven) {
6969
}
7070
});
7171

72-
ErrorUtils.setGlobalHandler(Raven.captureException);
72+
ErrorUtils.setGlobalHandler(Raven.captureException.bind(Raven));
7373
}
7474

7575
module.exports = reactNativePlugin;

0 commit comments

Comments
 (0)