@sentry/react-native
Advanced tools
Changelog
5.29.0
TimeToInitialDisplay
and TimeToFullDisplay
start the time to display spans on mount (#4020)Sentry.addBreadcrumb({ data: [] })
(#4021)
data
type is plain JS object, otherwise the data might be lost.requireNativeComponent
missing in react-native-web
(#3958)Changelog
Changelog
5.26.0
Session Replay Public Beta (#3830)
To enable Replay use the replaysSessionSampleRate
or replaysOnErrorSampleRate
options.
import * as Sentry from '@sentry/react-native';
Sentry.init({
_experiments: {
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
},
});
To add React Component Names use annotateReactComponents
in metro.config.js
.
// For Expo
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true });
// For RN
const { getDefaultConfig } = require('@react-native/metro-config');
const { withSentryConfig } = require('@sentry/react-native/metro');
module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
To change default redaction behavior add the mobileReplayIntegration
.
import * as Sentry from '@sentry/react-native';
Sentry.init({
_experiments: {
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
},
integrations: [
Sentry.mobileReplayIntegration({
maskAllImages: true,
maskAllVectors: true,
maskAllText: true,
}),
],
});
To learn more visit Sentry's Mobile Session Replay documentation page.
Changelog
5.25.0
currentScreen
on native scope (#3927)error.cause
chain is locally symbolicated in development builds (#3920)sentry-expo-upload-sourcemaps
no longer requires Sentry url when uploading sourcemaps to sentry.io
(#3915)SENTRY_AUTH_TOKEN
env as fallback when token not found in sentry-flavor-type.properties
. (#3917)mechanism.handled:false
should crash current session (#3900)Changelog
5.25.0-alpha.2
@sentry/babel-plugin-component-annotate
(#3899)sentry-expo-upload-sourcemaps
no longer requires Sentry url when uploading sourcemaps to sentry.io
(#3915)Access to Mobile Replay is limited to early access orgs on Sentry. If you're interested, sign up for the waitlist
Changelog
5.24.0
client.init()
(#3882)sentry-cli
doesn't trigger Xcode error:
prefix (#3887)
--allow-failure
failing Xcode buildsChangelog
5.23.1
startTimeToInitialDisplaySpan
optional (#3867)