-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
28 lines (23 loc) · 859 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from 'react'
import { LogBox } from 'react-native'
import './src/i18n'
import { AppWithProviders } from './src/AppWithProviders'
import * as Sentry from '@sentry/react-native'
import TrackPlayer from 'react-native-track-player'
LogBox.ignoreLogs([
'ViewPropTypes will be removed from React Native',
'Cannot record touch end without a touch start.'
])
TrackPlayer.setupPlayer()
Sentry.init({
dsn: 'https://[email protected]/4505561170771968',
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
tracesSampleRate: 1.0,
enabled: process.env.NODE_ENV !== 'development'
})
function App() {
// throw new Error('My first Sentry error!')
return <AppWithProviders />
}
export default Sentry.wrap(App)