Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

### Fixes

- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). It's done by applying the `ExceptionsManager.reportException` C++ wrapper filter in both init paths ([#6145](https://github.com/getsentry/sentry-react-native/pull/6145))
- Fix boolean options from `sentry.options.json` being ignored on Android when using `RNSentrySDK.init` ([#6130](https://github.com/getsentry/sentry-react-native/pull/6130))

### Dependencies
Expand Down
8 changes: 8 additions & 0 deletions packages/core/ios/RNSentryStart.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,14 @@ + (void)updateWithReactFinals:(SentryOptions *)options
return nil;
}

for (SentryException *exception in event.exceptions) {
if (nil != exception.value &&
[exception.value rangeOfString:@"ExceptionsManager.reportException"].location
!= NSNotFound) {
return nil;
}
}

[self setEventOriginTag:event];
if (userBeforeSend == nil) {
return event;
Expand Down
Loading