Skip to content

fix(react-native): report correct agent version and set RN peer floor to 0.73 - #379

Draft
KishanPRao wants to merge 1 commit into
mainfrom
feature/react-native-health
Draft

fix(react-native): report correct agent version and set RN peer floor to 0.73#379
KishanPRao wants to merge 1 commit into
mainfrom
feature/react-native-health

Conversation

@KishanPRao

Copy link
Copy Markdown
Contributor

Summary

The SDK stamped a hardcoded 0.0.1 agent version on every report; read it from the package version instead, and set the supported RN floor to 0.73.

Changes

  • packages/react-native/src/BacktraceClient.ts: read agentVersion from the package version instead of the hardcoded 0.0.1.
  • packages/react-native/package.json: set the react-native peer dependency floor to >=0.73.0 (0.72 crashes on init, 0.73 to 0.83 validated).

Note

agentVersion reads package.json through the react-native/src entry Metro uses, so it is correct at runtime; the lib/ builds resolve the path one level too deep, but RN never loads lib/.

ref: BT-7355

@KishanPRao
KishanPRao requested a review from melekr July 30, 2026 16:29
@KishanPRao KishanPRao self-assigned this Jul 30, 2026
@KishanPRao KishanPRao added the bug Something isn't working label Jul 30, 2026
@KishanPRao
KishanPRao marked this pull request as draft July 30, 2026 16:55

@melekr melekr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're pinning "react-native": ">=0.72.0"

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.

2 participants