5.23.0
This version does not build for iOS, please use 5.23.1
Features
-
Functional integrations (#3814)
Instead of installing
@sentry/integrationsand creating integrations using thenewkeyword, you can use direct imports of the functional integrations.// Before import * as Sentry from '@sentry/react-native'; import { HttpClient } from '@sentry/integrations'; Sentry.init({ integrations: [ new Sentry.BrowserIntegrations.Dedupe(), new Sentry.Integration.Screenshot(), new HttpClient(), ], }); // After import * as Sentry from '@sentry/react-native'; Sentry.init({ integrations: [ Sentry.dedupeIntegration(), Sentry.screenshotIntegration(), Sentry.httpClientIntegration(), ], });
Note that the
Sentry.BrowserIntegrations,Sentry.Integrationand the Class style integrations will be removed in the next major version of the SDK.
Fixes
- Remove unused
rnpmconfig (#3811)