tooot/src/startup/sentry.ts

15 lines
309 B
TypeScript
Raw Normal View History

2021-01-20 00:39:39 +01:00
import Constants from 'expo-constants'
2021-01-07 19:13:09 +01:00
import * as Sentry from 'sentry-expo'
2021-01-20 00:39:39 +01:00
import log from './log'
2021-01-07 19:13:09 +01:00
const sentry = () => {
log('log', 'Sentry', 'initializing')
Sentry.init({
2021-01-20 00:39:39 +01:00
dsn: Constants.manifest.extra.sentryDSN,
enableInExpoDevelopment: true,
2021-01-07 19:13:09 +01:00
debug: __DEV__
})
}
export default sentry