Repository navigation
Description
The wizard is being ported into the new CLI as sentry wizard (getsentry/toolkit#2544 for React Native, Expo and iOS). sentry init stays as a separate command until the two are merged after v4 (toolkit#2510).
This issue tests the port on bare RN and Expo. It confirms the gaps already identified, looks for new ones, and plans the follow-ups. Fixing the gaps is not part of this issue. The fixes go into the follow-ups it produces.
Gaps identified so far
From a code review of the #2544 branch. None of these have been confirmed by running the port yet.
- No tracing or profiling.
Sentry.initnever setstracesSampleRate(RN#5139). sentry.propertiesisn't gitignored, though it holds the auth token. Bothios/andandroid/files are written withgitignore: false(wizard#586).- The dSYM phase isn't monorepo-safe. It hard-codes
../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh(wizard#1021), and it declares no inputs or outputs (RN#3537). use_modular_headers!is added to every CocoaPods project, not only for the RN versions that need it.- The defaults set
sendDefaultPii: trueinstead of using the data-collection snippet, and there's no note to lower sample rates for production. - No non-interactive mode. The RN flow prompts at every step, so agents and CI can't run it.
- The DSN can come from a disabled key: when no key is active, it falls back to
keys[0]. Sentry silently drops events sent with a disabled key (WIZARD-65). - The SDK's upload scripts are still on CLI 3.x. The port writes
sentry.propertiesfor the SDK's bundled@sentry/cliscripts, but CLI v4 reads only.sentryclirc. That's on the RN SDK side (RN#6770).
Fixed in the port: it uses the first active DSN key, and it no longer writes a test error into the app (it only prints the button as a snippet, wizard#945).
Not checked yet:
- React Navigation / Expo Router tracing setup (wizard#880).
- Third-party
.pbxprojparsers still work (wizard#538). - The app builds without an auth token, including native symbol upload (docs(react-native): Skip native symbol upload when auto upload is disabled sentry-docs#20881).
- The failed step is reported (wizard#834).
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.
Background: the legacy wizard and sentry init retests in RN-868 and RN-889.
Done when
- The Add configurable heartbeat interval #2544 branch (or the merged port) has been run on a bare RN and an Expo fixture, on iOS and Android.
- Each identified gap is confirmed or ruled out by that run.
- Each "not checked yet" item and each "must keep working" item is marked pass or fail. Each mark says how it was checked: a file check, a build, or an event confirmed in Sentry.
- Any new gaps found in the run are added to the list above.
- Every confirmed gap has a follow-up with an owner. Gaps in the port go on the port PR, or become toolkit issues once it has merged. Gaps on the RN SDK side become issues in this project.
- The checks are scripted in the harness where possible (RN-872).
Activity
linear-code commentedon Nov 19, 2026
RN-871
[-]Write the RN/Expo spec and acceptance tests for `sentry wizard`[/-][+]Test the `sentry wizard` React Native and Expo port[/+]