Repository navigation
Open
Labels
Description
Part of the RN-869 action plan (sections 1 and 2).
The new CLI will replace sentry init with a sentry wizard command that takes over what @sentry/wizard does today. How it gets built is still open: a code port or an AI-assisted rewrite. Either way, React Native and Expo need a written spec of what the command must do, and acceptance tests that prove it.
Scope
What must keep working (from the legacy RN wizard, 9.1.0):
- Install
@sentry/react-native. Expo: withnpx expo install, so the version matches the Expo SDK. - Add
Sentry.initandSentry.wrap. - Metro:
withSentryConfigfor bare RN,getSentryExpoConfigfor Expo. - iOS: wrap the bundle phase with
sentry-xcode.sh, add the dSYM upload phase, and runpod install. - Android: apply
sentry.gradle. - Expo: add the
@sentry/react-native/expoconfig plugin. - Token:
sentry.propertiesfor bare RN,.env.localfor Expo. - Feature prompts: Logs, Session Replay, User Feedback.
What must be fixed, not ported:
- Offer tracing and profiling. The RN wizard never set
tracesSampleRate(RN#5139). - Set up React Navigation / Expo Router tracing (wizard#880).
- Add
sentry.propertiesto.gitignore(wizard#586). - dSYM phase: use a monorepo-safe path (wizard#1021) and declare inputs and outputs (RN#3537).
- Don't break third-party
.pbxprojparsers (wizard#538). - The app must build without an auth token, including native symbol upload (docs(react-native): Skip native symbol upload when auto upload is disabled sentry-docs#20881).
- Don't leave a test error in the app code (wizard#945).
- Defaults: the data-collection snippet instead of
sendDefaultPii, nodebug: true, and a note to lower sample rates for production. - Add
use_modular_headers!only for RN versions that need it. - Use an active DSN key only (WIZARD-65).
- Report which step failed (wizard#834).
- Support a non-interactive mode for agents and CI.
Full context and links: RN-869 plan comment and RN-868.
Done when
- The spec lists every requirement above as a check that passes or fails, separately for bare RN and Expo.
- Each check says how it's verified: a file check, a build, or an event confirmed in Sentry.
- Each "must keep working" item is marked keep, change or drop, with a reason.
- The spec is reviewed by the RN team and shared with the CLI team.
- Where possible, the checks are scripted in the verification harness (RN-872).
Activity
linear-code commentedon Nov 19, 2026
RN-871