Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
## Unreleased

### Fixes

- Pass enabled option to native ([#5334](https://github.com/getsentry/sentry-react-native/pull/5334))

### Dependencies

- Bump JavaScript SDK from v10.22.0 to v10.23.0 ([#5335](https://github.com/getsentry/sentry-react-native/pull/5335))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ protected void getSentryAndroidOptions(
if (rnOptions.hasKey("debug") && rnOptions.getBoolean("debug")) {
options.setDebug(true);
}
if (rnOptions.hasKey("enabled")) {
options.setEnabled(rnOptions.getBoolean("enabled"));
}
if (rnOptions.hasKey("dsn") && rnOptions.getString("dsn") != null) {
String dsn = rnOptions.getString("dsn");
logger.log(SentryLevel.INFO, String.format("Starting with DSN: '%s'", dsn));
Expand Down
Loading