@sentry/react-native
Advanced tools
Changelog
6.12.0
updateId
, channel
, Emergency Launch Reason and other Expo Updates constantsextraErrorDataIntegration
from @sentry/core
(#4762)@sentry-internal/replay
when includeWebReplay: false
(#4774)Changelog
6.11.0
Add createTimeToInitialDisplay({useFocusEffect})
and createTimeToFullDisplay({useFocusEffect})
to allow record full display on screen focus (#4665)
Add support for measuring Time to Initial Display for already seen routes (#4661)
enableTimeToInitialDisplayForPreloadedRoutes
option to the React Navigation integration.Sentry.reactNavigationIntegration({
enableTimeToInitialDisplayForPreloadedRoutes: true,
});
Add useDispatchedActionData
option to the React Navigation integration to filter out navigation actions that should not create spans (#4684)
PRELOAD
, SET_PARAMS
, TOGGLE_DRAWER
and others.Sentry.reactNavigationIntegration({
useDispatchedActionData: true,
});
popTimeToDisplayFor
in to the Android Old Arch Native interface(#4751)gradle.projectsEvaluated
to project.afterEvaluate
in the Sentry Gradle Plugin to fix tasks not being created when using --configure-on-demand
(#4687)SENTRY_FORCE_FOREGROUND
from Xcode Scripts as the underlying --force-foreground
Sentry CLI is no-op since v2.37.0 (#4689)Changelog
6.11.0-beta.0
Add createTimeToInitialDisplay({useFocusEffect})
and createTimeToFullDisplay({useFocusEffect})
to allow record full display on screen focus (#4665)
Add support for measuring Time to Initial Display for already seen routes (#4661)
enableTimeToInitialDisplayForPreloadedRoutes
option to the React Navigation integration.Sentry.reactNavigationIntegration({
enableTimeToInitialDisplayForPreloadedRoutes: true,
});
Add useDispatchedActionData
option to the React Navigation integration to filter out navigation actions that should not create spans (#4684)
PRELOAD
, SET_PARAMS
, TOGGLE_DRAWER
and others.Sentry.reactNavigationIntegration({
useDispatchedActionData: true,
});
gradle.projectsEvaluated
to project.afterEvaluate
in the Sentry Gradle Plugin to fix tasks not being created when using --configure-on-demand
(#4687)SENTRY_FORCE_FOREGROUND
from Xcode Scripts as the underlying --force-foreground
Sentry CLI is no-op since v2.37.0 (#4689)Changelog
6.10.0
Add thread information to spans (#4579)
Exposed getDataFromUri
as a public API to retrieve data from a URI (#4638)
Add enableExperimentalViewRenderer
to enable up to 5x times more performance in Session Replay on iOS (#4660)
import * as Sentry from '@sentry/react-native';
Sentry.init({
integrations: [
Sentry.mobileReplayIntegration({
enableExperimentalViewRenderer: true,
}),
],
});
SENTRY_DISABLE_AUTO_UPLOAD
and SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD
environment variables in the configuration of the Sentry Android Gradle Plugin for Expo plugin (#4583)Changelog
6.9.0
[!WARNING] This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android. See issue #4598 for more details.
User Feedback Widget Beta (#4435)
To collect user feedback from inside your application call Sentry.showFeedbackWidget()
.
import Sentry from "@sentry/react-native";
Sentry.showFeedbackWidget();
Sentry.wrap(RootComponent);
To change the default options add Sentry.feedbackIntegration()
.
import Sentry from "@sentry/react-native";
import * as ImagePicker from 'expo-image-picker';
Sentry.init({
integrations: [
Sentry.feedbackIntegration({
imagePicker: ImagePicker,
showName: true,
showEmail: true,
}),
],
});
To learn more about the available configuration options visit the documentation.
Changelog
6.8.0
[!WARNING] This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android. See issue #4598 for more details.
Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature (#4440)
To enable the plugin add the enableAndroidGradlePlugin
in the @sentry/react-native/expo
of the Expo application configuration.
"plugins": [
[
"@sentry/react-native/expo",
{
"experimental_android": {
"enableAndroidGradlePlugin": true,
}
}
],
To learn more about the available configuration options visit the documentation.
error:
prefix from collect-modules.sh
to avoid failing iOS builds (#4570)Sentry.setUser(null)
doesn't crash on iOS with RN 0.77.1 (#4567)tslib
in Sentry Metro Plugin (#4573)Changelog
6.7.0
[!WARNING] This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android. See issue #4598 for more details.
Add ignoredComponents
option to annotateReactComponents
to exclude specific components from React component annotations (#4517)
// metro.config.js
// for React Native
const config = withSentryConfig(mergedConfig, {
annotateReactComponents: {
ignoredComponents: ['MyCustomComponent']
}
});
// for Expo
const config = getSentryExpoConfig(__dirname, {
annotateReactComponents: {
ignoredComponents: ['MyCustomComponent'],
},
});