Here is our actual React Native source code which throws the exception:
const throwException = () => {
throw 'You clicked a button to intentionally throw an exception!'
}
const onException = () => {
throwException()
}
export const ArtistProfile = () => (
<View>
<Button title={I18n.t('ArtistProfile.exception')} style={styles.button} onPress={onException} />
</View>
)
This is what we see in sentry dashboard:
at captureMessage(/Users/mark/code/mobile/node_modules/raven-js/src/raven.js:376:0)
at captureException(/Users/mark/code/mobile/node_modules/raven-js/src/raven.js:325:0)
at ? (/Users/mark/code/mobile/node_modules/raven-js/plugins/react-native.js:124:0)
at reportFatalError(/Users/mark/code/mobile/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/error-guard.js:40:0)
at guard(/Users/mark/code/mobile/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:48:0)
at callFunctionReturnFlushedQueue(/Users/mark/code/mobile/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:107:0)
at callFunctionReturnFlushedQueue([native code])
Obviously, that is not useful to us in the slightest.
Is our configuration wrong? How can we set up to see something useful in sentry dashboard?
Thanks