Added sentry configuration

This commit is contained in:
Mustafa Buyukcelebi 2019-05-19 15:05:07 +03:00
parent 1e4171109d
commit 904f7f0feb

9
App.js
View File

@ -1,8 +1,13 @@
import { Sentry } from 'react-native-sentry';
import { Sentry, SentryLog } from 'react-native-sentry';
import codePush from 'react-native-code-push';
import App from './src/index';
Sentry.config('https://aeaa78debe6d428984f9823f4aee0681@sentry.io/1457345').install();
Sentry.config('https://aeaa78debe6d428984f9823f4aee0681@sentry.io/1457345', {
deactivateStacktraceMerging: false,
logLevel: SentryLog.Verbose,
disableNativeIntegration: false,
handlePromiseRejection: true,
}).install();
codePush.getUpdateMetadata().then((update) => {
if (update) {
Sentry.setVersion(`${update.appVersion}-codepush:${update.label}`);