Skip to content

fix(react-native): forward attachments added after init to iOS native crash reports - #386

Merged
KishanPRao merged 3 commits into
mainfrom
fix/attachments-after-init-native-crash-ios
Aug 19, 2026
Merged

fix(react-native): forward attachments added after init to iOS native crash reports#386
KishanPRao merged 3 commits into
mainfrom
fix/attachments-after-init-native-crash-ios

Conversation

@KishanPRao

Copy link
Copy Markdown
Collaborator

Summary

Attachments added after initialize() never reached native crash reports. Fixes iOS only.

Changes

  • packages/react-native/src/crashReporter/CrashReporter.ts: sends the attachment set to the native crash reporter, and no-ops where the native module has no attachment support.
  • packages/react-native/src/BacktraceClient.ts: forwards the full set on every attachment change, since the native layer replaces rather than merges.
  • packages/react-native/tests/nativeAttachmentPropagationTests.spec.ts: covers what reaches native and what deliberately does not.

ref: BT-7468

@KishanPRao KishanPRao self-assigned this Aug 19, 2026
@KishanPRao KishanPRao added the bug Something isn't working label Aug 19, 2026
@KishanPRao
KishanPRao requested a review from melekr August 19, 2026 14:22
@KishanPRao
KishanPRao marked this pull request as ready for review August 19, 2026 14:23
@KishanPRao
KishanPRao merged commit 1f8ab7d into main Aug 19, 2026
10 checks passed
@KishanPRao
KishanPRao deleted the fix/attachments-after-init-native-crash-ios branch August 19, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant