Merge pull request #1097 from esteemapp/bugfix/bugsnag-development

Disabled development errors for bugsnag
This commit is contained in:
Feruz M 2019-08-28 09:34:43 +03:00 committed by GitHub
commit cf05b05750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;