From 6ed2b977bab2163d7630388bb4b161fa386f46c7 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 16:30:30 +0300 Subject: [PATCH] Disabled development errors for bugsnag --- src/config/bugsnag.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/config/bugsnag.js b/src/config/bugsnag.js index 573707a03..48aeb8adf 100644 --- a/src/config/bugsnag.js +++ b/src/config/bugsnag.js @@ -1,5 +1,10 @@ -import { Client } from 'bugsnag-react-native'; +import { Client, Configuration } from 'bugsnag-react-native'; import Config from 'react-native-config'; -const client = new Client(Config.BUGSNAG_API_KEY); +const configuration = new Configuration(); +configuration.apiKey = Config.BUGSNAG_API_KEY; +configuration.consoleBreadcrumbsEnabled = true; +configuration.notifyReleaseStages = ['beta', 'production']; + +const client = new Client(configuration); export default client;