mirror of https://github.com/tooot-app/app
16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
import Constants from 'expo-constants'
|
|
import * as Sentry from 'sentry-expo'
|
|
import log from './log'
|
|
|
|
const sentry = () => {
|
|
log('log', 'Sentry', 'initializing')
|
|
Sentry.init({
|
|
environment: Constants.manifest.extra.sentryEnv,
|
|
dsn: Constants.manifest.extra.sentryDSN,
|
|
enableInExpoDevelopment: false,
|
|
debug: __DEV__
|
|
})
|
|
}
|
|
|
|
export default sentry
|