Notes

Integrating Sentry with Expo

Edit on GitHub

Expo
1npm i sentry-expo --save

Create an API auth token. Must have project:write

app.json

 1"hooks": {
 2  "postPublish": [
 3    {
 4      "file": "sentry-expo/upload-sourcemaps",
 5      "config": {
 6        "organization": "your organization's short name here",
 7        "project": "your project name here",
 8        "authToken": "your auth token here"
 9      }
10    }
11  ]
12}

App.js

1import Sentry from 'sentry-expo';
2
3// Remove this once Sentry is correctly setup.
4Sentry.enableInExpoDevelopment = true;
5
6Sentry.config('your Public DSN goes here').install();