Add screens for opting into Sentry error tracking

This commit is contained in:
Lei Nelissen
2021-02-13 15:34:43 +01:00
parent 8dc287e56a
commit 4635266273
22 changed files with 3004 additions and 6355 deletions

View File

@@ -4,14 +4,8 @@ import TrackPlayer from 'react-native-track-player';
import App from './src/components/App';
import { name as appName } from './app.json';
import PlaybackService from './src/utility/PlaybackService';
import * as Sentry from '@sentry/react-native';
import { SENTRY_DSN } from '@env';
if (SENTRY_DSN) {
Sentry.init({
dsn: SENTRY_DSN
});
}
import { setupSentry } from 'utility/Sentry';
setupSentry();
AppRegistry.registerComponent(appName, () => App);
TrackPlayer.registerPlaybackService(() => PlaybackService);