-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (31 loc) · 1.09 KB
/
index.js
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
29
30
31
32
33
34
35
/**
* @format
*/
import './shim.js'
import { AppRegistry } from 'react-native'
import { Buffer } from 'buffer'
import 'react-native-gesture-handler'
import 'react-native-get-random-values'
import 'react-native-url-polyfill/auto'
import { AnchorProvider, setProvider } from '@project-serum/anchor'
setProvider(AnchorProvider.defaultOptions())
global.Buffer = global.Buffer || Buffer
import App from './src/App'
import { name as appName } from './app.json'
import * as Sentry from '@sentry/react-native'
export const routingInstrumentation =
new Sentry.ReactNavigationInstrumentation()
if (process.env.NODE_ENV === 'production') {
Sentry.init({
dsn: 'https://cdbb8b5c254840a584b1d67dacd6f333@o4504016049668096.ingest.sentry.io/4504718638710784',
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
tracesSampleRate: 1.0,
integrations: [
new Sentry.ReactNativeTracing({
routingInstrumentation,
}),
],
})
}
AppRegistry.registerComponent(appName, () => Sentry.wrap(App))