5.23.0
This version does not build for iOS, please use 5.23.1
Features
-
Functional integrations (#3814)
Instead of installing
@sentry/integrations
and creating integrations using thenew
keyword, 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.Integration
and the Class style integrations will be removed in the next major version of the SDK.
Fixes
- Remove unused
rnpm
config (#3811)