@sentry/react-native
Advanced tools
Changelog
6.16.0
Introducing @sentry/react-native/playground
(#4916)
The new withSentryPlayground
component allows developers to verify
that the SDK is properly configured and reports errors as expected.
import * as Sentry from '@sentry/react-native';
import { withSentryPlayground } from '@sentry/react-native/playground';
function App() {
return <View>...</View>;
}
export default withSentryPlayground(
Sentry.wrap(App)
);
Changelog
6.15.0
User Feedback Widget Updates
FeedbackButton
for easy access to the widget (#4378)ScreenshotButton
for capturing the application visuals (#4714)Sentry.init({
integrations: [
Sentry.feedbackIntegration({
enableTakeScreenshot: true, // Enables `ScreenshotButton`
themeDark: {
// Add dark theme styles here
},
themeLight: {
// Add light theme styles here
},
}),
],
});
Sentry.showFeedbackButton();
Sentry.hideFeedbackButton();
To learn more visit the documentation.
Re-export ErrorEvent
and TransactionEvent
types (#4859)
parentSpanId
was removed (#4881)Changelog
6.14.0
traceFetch
is disabled by default on mobile as RN uses a polyfill which will be traced by traceXHR
enableExperimentalViewRenderer
to enableViewRendererV2
which is enabled by default for up to 5x times more performance in Session Replay on iOS (#4815)