Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showSentryAlert = () => {
if (isDevMode()) {
Alert.alert(
'Sentry button pressed',
'Nothing will appear in the dashboard during development.',
)
} else {
Sentry.setEventSentSuccessfully(event => {
Alert.alert(`Sent an event to Sentry: ${event.event_id}`)
})
}
}