Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yleflour
Created June 23, 2016 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yleflour/59432766055a0eeb392d02d4c2ac09d3 to your computer and use it in GitHub Desktop.
Save yleflour/59432766055a0eeb392d02d4c2ac09d3 to your computer and use it in GitHub Desktop.
[React native] Sentry config
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import Raven from 'raven-js';
import ravenPluginReactNative from 'raven-js/plugins/react-native';
import App from 'myapp/src/App';
if (!__DEV__) {
// enable sentry for evrything but dev
const dsn = 'YOUR_SENTRY_DSN';
ravenPluginReactNative(Raven);
Raven.config(dsn).install();
/**
* TODO : do others thinks cf :
* - https://github.com/bamlab/chooz-it-app/blob/chooz-integration/registerReactApp.js#L32
* - https://github.com/bamlab/chooz-it-app/blob/chooz-integration/registerReactApp.js#L34
* - https://github.com/bamlab/chooz-it-app/blob/chooz-integration/registerReactApp.js#L48
*/
}
const myApp = () => <App />;
AppRegistry.registerComponent('myApp', () => myApp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment