Sentry.setRelease is not a function

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): Android
  3. “sentry-expo”: “^3.0.2”,
  4. “expo-constants”: “~9.2.0”,

Replace this section with as much relevant information as possible and any relevant code along with your question.

i have imported
import * as Sentry from “sentry-expo”; in App.js

Sentry.init({
dsn: Keys.sentryDns
});

Sentry.setRelease(Constants.manifest.revisionId);

Hi! you can set the release inside of the init method, i.e.:

Sentry.init({
dsn: Keys.sentryDns, 
release: "myrelease"
});