Skip to content

docs(react-native): Clarify options merging and release alignment for native auto-init#17540

Open
antonis wants to merge 2 commits intomasterfrom
antonis/docs/clarify-release-alignment-native-init
Open

docs(react-native): Clarify options merging and release alignment for native auto-init#17540
antonis wants to merge 2 commits intomasterfrom
antonis/docs/clarify-release-alignment-native-init

Conversation

@antonis
Copy link
Copy Markdown
Contributor

@antonis antonis commented Apr 29, 2026

DESCRIBE YOUR PR

Clarifies how sentry.options.json and Sentry.init() options interact when using native auto-initialization.

Users enabling useNativeInit with a custom release in Sentry.init() see two separate releases in Sentry — one from native init (auto-detected) and one from JS init (custom). The previous docs implied JS always overrides, which isn't true for crashes captured before JS loads.

  • Rewrote the "Options Merging" alert to explain that pre-JS crashes use only file values, not JS overrides
  • Added "Setting Release and Distribution" section with guidance on keeping native and JS release values aligned

This is related to the investigation in getsentry/sentry-react-native#6069

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Rewrite the Options Merging alert to explain that pre-JS crashes use
only sentry.options.json values, not JS overrides. Add a Setting
Release and Distribution section with guidance on keeping native and
JS release values aligned via SENTRY_RELEASE/SENTRY_DIST env vars.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Apr 29, 2026 0:42am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Apr 29, 2026 0:42am

Request Review

@codeowner-assignment codeowner-assignment Bot requested a review from a team April 29, 2026 12:30
Remove env var override content that depends on unreleased SDK changes.
This will be added in a follow-up PR.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant