Repro steps:
- Add DSN in
sentry.ts
- Run
yarn start
andyarn ios
oryarn android
- Open app on device or simulator
- Throw errors using "Throw error" button with and without Sentry error reporting
- Check if errors show up on Sentry Dashboard
Expected result: Errors show up in Sentry Dashboard when it's enabled.
Actual result: Errors do not show on Sentry Dashboard no matter the setting.
If you uncomment enabled
property in the entire sentry.ts
file and only modify sample rates and other properties it seems to be working correctly. It is possible to change it during runtime without having to restart app's bundle.