diff --git a/plugins/react-native.js b/plugins/react-native.js index 03ebb8ace457..8885235d4ba2 100644 --- a/plugins/react-native.js +++ b/plugins/react-native.js @@ -64,8 +64,9 @@ module.exports = function (Raven) { data.culprit = normalizeUrl(data.culprit); } - if (data.stacktrace && data.stacktrace.frames && data.stacktrace.frames.length) { - data.stacktrace.frames.forEach(function (frame) { + if (data.exception) { + // if data.exception exists, all of the other keys should gaurantee to exist + data.exception.values[0].stacktrace.frames.forEach(function (frame) { frame.filename = normalizeUrl(frame.filename); }); }