@sentry/react-native
Advanced tools
Changelog
6.19.0
sentry-cli
path discovery not working on Android (#5009)addIntegration
from @sentry/core
(#5020)Adds replaysSessionQuality
Session Replay option to control replay quality and performance overhead on mobile (#5001)
import * as Sentry from '@sentry/react-native';
Sentry.init({
replaysSessionSampleRate: 1.0,
replaysSessionQuality: 'low', // possible values: low, medium (default), high
integrations: [Sentry.mobileReplayIntegration()],
});
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)
);