Disabled development errors for bugsnag

This commit is contained in:
Mustafa Buyukcelebi 2019-08-27 16:30:30 +03:00
parent 4536cdcb93
commit 6ed2b977ba

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;