From a76f8b462167fc7e7876f5392b6d796cfe9bd475 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 21 May 2026 10:44:30 +0200 Subject: [PATCH 1/2] docs(react-native): Document `disableAutoUpload` Expo plugin option Co-Authored-By: Claude Opus 4.6 --- .../react-native/sourcemaps/index.mdx | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/platforms/react-native/sourcemaps/index.mdx b/docs/platforms/react-native/sourcemaps/index.mdx index 9328ea9b872a58..2c0593bc9ffacd 100644 --- a/docs/platforms/react-native/sourcemaps/index.mdx +++ b/docs/platforms/react-native/sourcemaps/index.mdx @@ -52,6 +52,40 @@ sentry { } ``` +#### Expo + +In Expo managed projects, you can disable uploads directly in the plugin configuration using the `disableAutoUpload` option. This bakes the setting into the native projects during `expo prebuild`, so uploads are disabled even when building from the Xcode GUI where environment variables aren't available. + +```javascript +// app.config.js +module.exports = withSentry(config, { + project: "my-project", + organization: "my-org", + disableAutoUpload: true, +}); +``` + +You can also set the environment variable when running builds from the CLI: + +```bash +SENTRY_DISABLE_AUTO_UPLOAD=true npx expo run:ios +SENTRY_DISABLE_AUTO_UPLOAD=true npx expo run:android +``` + +Or in `eas.json` for EAS builds: + +```json +{ + "build": { + "development": { + "env": { + "SENTRY_DISABLE_AUTO_UPLOAD": "true" + } + } + } +} +``` + ### Debug Builds Symbolication is handled directly by the Metro development server, automatically providing the symbolication needed to translate stack traces into readable source code in a development environment. There's no need to upload source maps for these types of builds which is why the automatic uploading of source maps is disabled. From 105fed9de4807a8b1cdf9c93f63dbd3b0a573079 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 21 May 2026 11:06:35 +0200 Subject: [PATCH 2/2] fix: Add missing import and config to Expo snippet Co-Authored-By: Claude Opus 4.6 --- docs/platforms/react-native/sourcemaps/index.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/platforms/react-native/sourcemaps/index.mdx b/docs/platforms/react-native/sourcemaps/index.mdx index 2c0593bc9ffacd..6e84349a2f44be 100644 --- a/docs/platforms/react-native/sourcemaps/index.mdx +++ b/docs/platforms/react-native/sourcemaps/index.mdx @@ -58,6 +58,13 @@ In Expo managed projects, you can disable uploads directly in the plugin configu ```javascript // app.config.js +const { withSentry } = require("@sentry/react-native/expo"); + +const config = { + name: "my-app", + slug: "my-app", +}; + module.exports = withSentry(config, { project: "my-project", organization: "my-org",