-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (21 loc) · 767 Bytes
/
index.js
File metadata and controls
25 lines (21 loc) · 767 Bytes
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
import 'react-native-gesture-handler'
// Initialize console override early - disable all console methods in production
import './src/utils/console-override'
import { AppRegistry, __DEV__ } from 'react-native'
import App from './App'
import { name as appName } from './app.json'
import { enableFreeze, enableScreens } from 'react-native-screens'
import { GLITCHTIP_DSN } from './src/configs/config'
import * as Sentry from '@sentry/react-native'
import registerAutoService from './src/services/carplay'
enableScreens(true)
enableFreeze(true)
Sentry.init({
dsn: GLITCHTIP_DSN,
enableNative: !__DEV__,
tracesSampleRate: 0.01,
enableAutoSessionTracking: false,
enabled: !!GLITCHTIP_DSN,
})
registerAutoService()
AppRegistry.registerComponent(appName, () => App)