Skip to content

Commit

Permalink
fix(react-native): Expo updates tags code snippet (#10199)
Browse files Browse the repository at this point in the history
  • Loading branch information
bj97301 committed Jun 21, 2024
1 parent 87b7487 commit 13c8d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/platforms/react-native/migration/sentry-expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import * as Updates from "expo-updates";
import * as Sentry from "@sentry/react-native";

Sentry.setExtras({
manifest,
manifest: Updates.manifest,
deviceYearClass: Device.deviceYearClass,
linkingUri: Constants.linkingUri,
});
Expand All @@ -93,7 +93,7 @@ Sentry.setTag("expoSdkVersion", Updates.manifest.sdkVersion);
Sentry.setTag("deviceId", Constants.sessionId);
Sentry.setTag("appOwnership", Constants.appOwnership || "N/A");
if (Constants.appOwnership === "expo" && Constants.expoVersion) {
setTag("expoAppVersion", Constants.expoVersion);
Sentry.setTag("expoAppVersion", Constants.expoVersion);
}
Sentry.setTag("expoChannel", Updates.channel);
```
Expand Down

0 comments on commit 13c8d07

Please sign in to comment.