Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions docs/platforms/react-native/sourcemaps/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,47 @@ 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
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",
disableAutoUpload: true,
});
```
Comment thread
sentry[bot] marked this conversation as resolved.

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.
Loading