Skip to content

docs(react-native): Document useProfiler hook and Profiler component#17348

Open
antonis wants to merge 2 commits intomasterfrom
antonis/useprofiler-hook-react-native
Open

docs(react-native): Document useProfiler hook and Profiler component#17348
antonis wants to merge 2 commits intomasterfrom
antonis/useprofiler-hook-react-native

Conversation

@antonis
Copy link
Copy Markdown
Contributor

@antonis antonis commented Apr 15, 2026

DESCRIBE YOUR PR

Document the useProfiler hook and Profiler component on the React Native component tracking page, alongside the existing withProfiler HOC documentation.

  • Add useProfiler hook section with usage example and options (disabled, hasRenderSpan)
  • Add Profiler component section with updateProps example
  • Update withProfiler example to use a function component instead of a class component
  • Add missing disabled option to withProfiler docs
  • Fix incorrect span op-codes (react.updateui.react.update)
  • Add cross-links between sections for discoverability

Closes #17304
Closes #7092

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

Add useProfiler hook and Profiler component documentation to the React
Native component tracking page. Update withProfiler section with
function component example, add missing disabled option, and fix
incorrect span op-codes.

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

vercel bot commented Apr 15, 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 15, 2026 1:38pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Apr 15, 2026 1:38pm

Request Review

…cking

The Note MDX component is not registered, causing the build to fail.
Use Alert instead, which is available globally.

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.

Document useProfiler hook for React Native component tracking Make React Native Sentry.withProfiler more prominent

1 participant