Skip to content

Test the sentry wizard React Native and Expo port #7068

Open

Description

@antonis

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.

  1. No tracing or profiling. Sentry.init never sets tracesSampleRate (RN#5139).
  2. sentry.properties isn't gitignored, though it holds the auth token. Both ios/ and android/ files are written with gitignore: false (wizard#586).
  3. 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).
  4. use_modular_headers! is added to every CocoaPods project, not only for the RN versions that need it.
  5. The defaults set sendDefaultPii: true instead of using the data-collection snippet, and there's no note to lower sample rates for production.
  6. No non-interactive mode. The RN flow prompts at every step, so agents and CI can't run it.
  7. 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).
  8. The SDK's upload scripts are still on CLI 3.x. The port writes sentry.properties for the SDK's bundled @sentry/cli scripts, 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:

What must keep working

From the legacy RN wizard, 9.1.0:

  • Install @sentry/react-native. Expo: with npx expo install, so the version matches the Expo SDK.
  • Add Sentry.init and Sentry.wrap.
  • Metro: withSentryConfig for bare RN, getSentryExpoConfig for Expo.
  • iOS: wrap the bundle phase with sentry-xcode.sh, add the dSYM upload phase, and run pod install.
  • Android: apply sentry.gradle.
  • Expo: add the @sentry/react-native/expo config plugin.
  • Token: sentry.properties for bare RN, .env.local for 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

  1. linear-code commented on Nov 19, 2026

    @linear-code
  2. self-assigned this
    on Nov 19, 2026
  3. changed the title [-]Write the RN/Expo spec and acceptance tests for `sentry wizard`[/-] [+]Test the `sentry wizard` React Native and Expo port[/+] on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions