Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View cbrevik's full-sized avatar
🙈

Christian Brevik cbrevik

🙈
View GitHub Profile
@cbrevik
cbrevik / error-report.js
Created January 31, 2017 07:40 — forked from tianjianchn/error-report.js
Error report util with fabric/crashlytics in react-native
/*global __DEV__*/
import StackTrace from 'stacktrace-js';
const Fabric = require('react-native-fabric');
const { Crashlytics } = Fabric;
//call this to start capturing any no-handled errors
exports.init = function(captrueOnDebugMode){
if (__DEV__ && !captrueOnDebugMode) {
return;