fix(react-native): report correct agent version and fix RN 0.72 init crash - #379
Merged
Conversation
melekr
reviewed
Jul 30, 2026
melekr
left a comment
Collaborator
There was a problem hiding this comment.
we're pinning "react-native": ">=0.72.0"
KishanPRao
marked this pull request as ready for review
August 12, 2026 08:56
melekr
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reports carried a hardcoded
0.0.1agent version, RN 0.72 apps crashed at SDK init because Metro 0.76.9 mis-indexes a babel helper require in sdk-core's bundle, and the sourcemap scripts never shipped, so JS symbolication could not be set up.Changes
packages/react-native/src/BacktraceClient.ts: readagentVersionfrom the package version instead of the hardcoded0.0.1.packages/sdk-core/tsconfig.build.json: target ES5 with downlevelIteration so the shipped bundle has no class syntax for the consumer's Metro to transpile into babel helper requires.packages/sdk-core/rollup.config.mjs: bundle tslib so the ES5 output is self-contained.packages/react-native/package.json: addscriptstofilesso the sourcemap tooling ships.Note
agentVersionreadspackage.jsonthrough thereact-native/srcentry Metro uses, so it is correct at runtime; thelib/builds resolve the path one level too deep, but RN never loadslib/.-Werror(client side, not SDK); ES5 costs sdk-core ~8KB gzip across all JS SDKs.test_linux_allis red due to a Sauce Connect service-side issue, unrelated to this change. Instead, validated on Chrome, Firefox, Edge, Safari, manually.ref: BT-7354, BT-7406