Integrating Sentry with Expo
npm i sentry-expo --save
Create an API auth token. Must have project:write
app.json
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "your organization's short name here",
"project": "your project name here",
"authToken": "your auth token here"
}
}
]
}
App.js
import Sentry from 'sentry-expo';
// Remove this once Sentry is correctly setup.
Sentry.enableInExpoDevelopment = true;
Sentry.config('your Public DSN goes here').install();