Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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
You can’t perform that action at this time.