diff --git a/docs/platforms/react-native/migration/sentry-expo.mdx b/docs/platforms/react-native/migration/sentry-expo.mdx index 579e6ece2fc06e..5e4be46bccfc39 100644 --- a/docs/platforms/react-native/migration/sentry-expo.mdx +++ b/docs/platforms/react-native/migration/sentry-expo.mdx @@ -83,6 +83,7 @@ Expo-specific tags are no longer added by default. If you were using them, you c ```javascript import Constants from "expo-constants"; +import * as Application from 'expo-application'; import * as Device from "expo-device"; import * as Updates from "expo-updates"; @@ -94,16 +95,12 @@ Sentry.setExtras({ linkingUri: Constants.linkingUri, }); -Sentry.setTag("expoReleaseChannel", Updates.manifest.releaseChannel); -Sentry.setTag("appVersion", Updates.manifest.version); -Sentry.setTag("appPublishedTime", Updates.manifest.publishedTime); -Sentry.setTag("expoSdkVersion", Updates.manifest.sdkVersion); -Sentry.setTag("deviceId", Constants.sessionId); -Sentry.setTag("appOwnership", Constants.appOwnership || "N/A"); -if (Constants.appOwnership === "expo" && Constants.expoVersion) { - Sentry.setTag("expoAppVersion", Constants.expoVersion); -} Sentry.setTag("expoChannel", Updates.channel); +Sentry.setTag("appVersion", Application.nativeApplicationVersion); +Sentry.setTag("deviceId", Constants.sessionId); +Sentry.setTag("executionEnvironment", Constants.executionEnvironment); +Sentry.setTag("expoGoVersion", Constants.expoVersion); +Sentry.setTag("expoRuntimeVersion", Constants.expoRuntimeVersion); ``` ## Review `react-native-web` Compatibility