Created
June 23, 2016 16:22
-
-
Save yleflour/59432766055a0eeb392d02d4c2ac09d3 to your computer and use it in GitHub Desktop.
[React native] Sentry config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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