Skip to content

docs(react-native): Add Sentry.NavigationContainer setup option - #17850

Merged
antonis merged 3 commits into
masterfrom
docs/react-native-navigation-container
May 28, 2026
Merged

antonis merged 3 commits into
masterfrom
docs/react-native-navigation-container

Conversation

@antonis

@antonis antonis commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Adds Sentry.NavigationContainer as an alternative setup option for React Navigation instrumentation on the React Navigation docs page.

The existing manual setup (with ref + registerNavigationContainer) remains the primary approach. The new wrapper is presented as a simpler alternative under its own subsection.

Related SDK PR: getsentry/sentry-react-native#6199

IS YOUR CHANGE URGENT?

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

PRE-MERGE CHECKLIST

  • 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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented May 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment May 28, 2026 5:34am
sentry-docs Ready Ready Preview, Comment May 28, 2026 5:34am

Request Review

@lucas-zimerman lucas-zimerman 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.

Looking good! lets merge it once getsentry/sentry-react-native#6199 is released.


### With Sentry.NavigationContainer

`Sentry.NavigationContainer` is a drop-in replacement for React Navigation's `NavigationContainer` that handles registration automatically. It accepts all the same props, including `ref` for imperative navigation.

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.

It's worth mentioning the SDK version that introduced this feature here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea Lucas 👍 Added with b20429e

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🏄‍♂️

Comment thread includes/react-native-react-navigation-setup.mdx
Comment thread includes/react-native-react-navigation-setup.mdx
@antonis
antonis merged commit 672c154 into master May 28, 2026
21 checks passed
@antonis
antonis deleted the docs/react-native-navigation-container branch May 28, 2026 16:22

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — d57f5ba5 Deployed May 28, 2026 by vercel[bot]
Preview – develop-docs — d57f5ba5 Deployed May 28, 2026 by vercel[bot]
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.

3 participants