sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

[Expo] Add Expo Updates Guide to Docs

Open krystofwoldrich opened this issue 7 months ago • 0 comments

Document current Expo Updates integration and what information is automatically collected.

Screenshot 2025-05-07 at 09.28.17.png

Add guide for how Releases can be create for each update.

import * as Updates from "expo-updates";
import * as Application from "expo-application";
import * as Sentry from "@sentry/react-native";

const name = Application.applicationName ?? "unknown-name";
const version = Application.nativeApplicationVersion ?? "unknown-version";
const build = Application.nativeBuildVersion ?? "unknown-build";
const updateId = Updates.isEmbeddedLaunch ? null : Updates.updateId;
const channel = Updates.channel || "development";
const release = updateId
  ? `${name}@${version}+${build}#${channel}:${updateId}`
  : `${name}@${version}+${build}#${channel}`;

Sentry.init({
  // ...rest
  release,
}); 

krystofwoldrich avatar May 19 '25 08:05 krystofwoldrich