Skip to content

Commit f8e4ad4

Browse files
feat(skills-next): add react-native SDK references (#249)
1 parent 1f54c53 commit f8e4ad4

8 files changed

Lines changed: 5624 additions & 0 deletions

File tree

skills-next/references/sdks/react-native/error-monitoring.md

Lines changed: 1420 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Expo Config Plugin Reference — Sentry React Native SDK
2+
3+
Configure the plugin in `app.json` or `app.config.js`:
4+
5+
```json
6+
{
7+
"expo": {
8+
"plugins": [
9+
[
10+
"@sentry/react-native/expo",
11+
{
12+
"url": "https://sentry.io/",
13+
"project": "my-project",
14+
"organization": "my-org",
15+
"note": "Set SENTRY_AUTH_TOKEN env var for native builds"
16+
}
17+
]
18+
]
19+
}
20+
}
21+
```
22+
23+
Or in `app.config.js` (allows env var interpolation):
24+
25+
```javascript
26+
export default {
27+
expo: {
28+
plugins: [
29+
[
30+
"@sentry/react-native/expo",
31+
{
32+
url: "https://sentry.io/",
33+
project: process.env.SENTRY_PROJECT,
34+
organization: process.env.SENTRY_ORG,
35+
disableAutoUpload: process.env.NODE_ENV === "development",
36+
},
37+
],
38+
],
39+
},
40+
};
41+
```
42+
43+
> **Tip:** Set `disableAutoUpload: true` during local development to speed up builds by skipping source map and dSYM uploads. The option is available in SDK ≥8.13.0.

0 commit comments

Comments
 (0)