Closed
Description
Description
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: 'YOUR DSN HERE',
enabled: !__DEV__, // this is not working
});
function App() {
// ...
}
registerRootComponent(Sentry.wrap(App) as Parameters<typeof registerRootComponent>[0]);
My work around is not call Sentry.init
and Sentry.wrap
when in development:
if (!__DEV__) {
Sentry.init({
dsn: 'https://[email protected]/6',
});
}
function App() {
// ...
}
const RootComponent = __DEV__
? App
: (Sentry.wrap(App) as Parameters<typeof registerRootComponent>[0]);
registerRootComponent(RootComponent);
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done
Status
Waiting for: Product Owner