Commit 63e81a51 authored by Martin Santangelo's avatar Martin Santangelo
Browse files

Merge branch 'feat/fix-sentry-native-exception-capture' into 'release/3.9.1'

[Sprint/ModestMonkey] (fix) sentry native errors capture with the rn exception handler

See merge request !335
parents 3264d4b9 e9741133
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ import {

import { onError } from "mobx-react";
import logService from './src/common/services/log.service';
import Sentry from 'react-native-sentry';

onError(error => {
  console.log(error);
@@ -48,7 +49,9 @@ if (!__DEV__) {
   * Native Errors
   */
  setNativeExceptionHandler((exceptionString) => {
    Sentry.captureException(new Error(exceptionString), {
      logger: 'NativeExceptionHandler',
    });
    console.log(exceptionString);
    logService.exception(exceptionString);
  });
}
+1 −1
+4 −4
Original line number Diff line number Diff line
@@ -7504,10 +7504,10 @@ react-native-elements@^0.19.1:
    opencollective "^1.0.3"
    prop-types "^15.5.8"

react-native-exception-handler@^2.10.7:
  version "2.10.7"
  resolved "https://registry.yarnpkg.com/react-native-exception-handler/-/react-native-exception-handler-2.10.7.tgz#3ce2f10d6a8add35fdc036af62c2859c4b7f505c"
  integrity sha512-e2zv0BiP9SRdr1vLDUyC2WbWHfgNV1a3BhRxK1ENjXVRY8mu+dfaaIHhFXdvYue//MEuGUQstu61NZoiO1u2KA==
react-native-exception-handler@^2.10.8:
  version "2.10.8"
  resolved "https://registry.yarnpkg.com/react-native-exception-handler/-/react-native-exception-handler-2.10.8.tgz#1a7f846592d888d23adaf797e31802585f1d9ff0"
  integrity sha512-ZN+jwpADRkCUNdad/50k0mZdMoICGrGdtaxgvRU+pNcWRRBAXJhuo4+jY0eQaoVpx1ghycGE6tBu9ka8gL2NOQ==

react-native-exit-app@^1.0.0:
  version "1.0.0"