From 8ed1d6af4f231ba4205b668efb606fe7b70b2d3b Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Fri, 19 Jun 2026 11:47:24 +0200 Subject: [PATCH 1/4] feat(react-native): Add Expo as a guide under React Native Make Expo a first-class guide under the React Native platform, mirroring the Dart>Flutter and JavaScript platform grouping. The docs home page and platform selector now show a single "React Native" dropdown containing "React Native" (bare/CLI) and "Expo" as siblings, with the Expo brand icon. - Move docs/platforms/react-native/* into common/ so the platform and its guides share content (public URLs are unchanged) - Add config.yml with platformTitle to drive the dropdown grouping - Add guides/expo/index.mdx Expo getting-started landing page - Add the Expo platform icon: a local copy of the (as-yet unreleased) getsentry/platformicons svg/expo.svg, wired through PLATFORM_TO_ICON so the react-native.expo guide key resolves to it instead of the React icon Co-Authored-By: Claude Opus 4.8 --- .../ai-agent-monitoring/index.mdx | 0 .../{ => common}/build-distribution/index.mdx | 0 .../{ => common}/configuration/app-hangs.mdx | 0 .../{ => common}/configuration/draining.mdx | 0 .../configuration/environments.mdx | 0 .../{ => common}/configuration/filtering.mdx | 0 .../{ => common}/configuration/index.mdx | 0 .../{ => common}/configuration/options.mdx | 0 .../{ => common}/configuration/releases.mdx | 0 .../{ => common}/configuration/sampling.mdx | 0 .../configuration/touchevents.mdx | 0 .../{ => common}/configuration/webview.mdx | 0 .../apple-privacy-manifest.mdx | 0 .../data-management/data-collected.mdx | 0 .../debug-files/file-formats/index.mdx | 0 .../debug-files/identifiers/index.mdx | 0 .../data-management/debug-files/index.mdx | 0 .../img/source-context-screenshot.png | Bin .../debug-files/source-context/index.mdx | 0 .../debug-files/symbol-servers/index.mdx | 0 .../debug-files/upload/index.mdx | 0 .../{ => common}/data-management/index.mdx | 0 .../data-management/sensitive-data/index.mdx | 0 .../enriching-events/attachments/index.mdx | 0 .../enriching-events/breadcrumbs/index.mdx | 0 .../context/default-context.mdx | 0 .../enriching-events/context/index.mdx | 0 .../event-processors/index.mdx | 0 .../enriching-events/identify-user/index.mdx | 0 .../{ => common}/enriching-events/index.mdx | 0 .../enriching-events/scopes/index.mdx | 0 .../img/screenshot-list-example.png | Bin .../screenshots/img/screenshot-thumbnail.png | Bin .../enriching-events/screenshots/index.mdx | 0 .../enriching-events/tags/index.mdx | 0 .../transaction-name/index.mdx | 0 .../enriching-events/viewhierarchy/index.mdx | 0 .../{ => common}/feature-flags/index.mdx | 0 .../{ => common}/features/index.mdx | 0 .../react-native/{ => common}/index.mdx | 0 .../{ => common}/integrations/anthropic.mdx | 0 .../integrations/component-names.mdx | 0 .../integrations/component-tracking.mdx | 0 .../{ => common}/integrations/consola.mdx | 0 .../integrations/console-logging.mdx | 0 .../{ => common}/integrations/custom.mdx | 2 +- .../{ => common}/integrations/deeplink.mdx | 0 .../{ => common}/integrations/default.mdx | 0 .../integrations/error-boundary.mdx | 0 .../integrations/google-genai.mdx | 0 .../{ => common}/integrations/graphql.mdx | 0 .../integrations/img/errorboundary-error.png | Bin .../{ => common}/integrations/index.mdx | 0 .../{ => common}/integrations/langchain.mdx | 0 .../{ => common}/integrations/langgraph.mdx | 0 .../{ => common}/integrations/openai.mdx | 0 .../{ => common}/integrations/plugin.mdx | 0 .../{ => common}/integrations/redux.mdx | 0 .../{ => common}/integrations/spotlight.mdx | 0 .../integrations/unhandled-rejections.mdx | 0 .../react-native/{ => common}/logs/index.mdx | 0 .../manual-setup/app-start-error-capture.mdx | 0 .../{ => common}/manual-setup/expo.mdx | 0 .../manual-setup/expo/eas-build-hooks.mdx | 0 .../manual-setup/expo/expo-updates.mdx | 0 .../{ => common}/manual-setup/expo/gradle.mdx | 0 .../{ => common}/manual-setup/hermes.mdx | 0 .../{ => common}/manual-setup/index.mdx | 0 .../manual-setup/manual-setup.mdx | 0 .../{ => common}/manual-setup/metro.mdx | 0 .../{ => common}/manual-setup/native-init.mdx | 0 .../{ => common}/manual-setup/playground.mdx | 0 .../{ => common}/manual-setup/ram-bundles.mdx | 0 .../{ => common}/metrics/index.mdx | 0 .../{ => common}/migration/before-v5.mdx | 0 .../{ => common}/migration/index.mdx | 0 .../{ => common}/migration/sentry-expo.mdx | 0 .../{ => common}/migration/v5-to-v6.mdx | 0 .../{ => common}/migration/v6-to-v7.mdx | 0 .../{ => common}/migration/v7-to-v8.mdx | 0 .../{ => common}/overhead/index.mdx | 0 .../{ => common}/profiling/index.mdx | 0 .../profiling/troubleshooting/index.mdx | 0 .../{ => common}/releases/index.mdx | 0 .../{ => common}/session-replay/index.mdx | 0 .../session-replay/performance-overhead.mdx | 0 .../session-replay/privacy/index.mdx | 0 .../{ => common}/size-analysis/index.mdx | 0 .../{ => common}/size-analysis/insights.mdx | 0 .../{ => common}/sourcemaps/debug-ids.mdx | 0 .../{ => common}/sourcemaps/index.mdx | 0 .../img/001-manual-sourcemaps.png | Bin .../sourcemaps/troubleshooting/index.mdx | 0 .../legacy-uploading-methods.mdx | 0 .../optional-release-and-distribution.mdx | 0 .../sourcemaps/uploading/codepush.mdx | 0 .../sourcemaps/uploading/expo-advanced.mdx | 0 .../sourcemaps/uploading/expo.mdx | 0 .../sourcemaps/uploading/hermes.mdx | 0 .../sourcemaps/uploading/index.mdx | 0 .../{ => common}/sourcemaps/uploading/jsc.mdx | 0 .../{ => common}/tracing/index.mdx | 0 .../automatic-instrumentation.mdx | 0 .../custom-instrumentation.mdx | 0 .../instrumentation/custom-navigation.mdx | 0 .../instrumentation/expo-resources.mdx | 0 .../tracing/instrumentation/expo-router.mdx | 0 .../tracing/instrumentation/index.mdx | 0 .../instrumentation/performance-metrics.mdx | 0 .../react-native-navigation.mdx | 0 .../instrumentation/react-navigation.mdx | 0 .../instrumentation/time-to-display.mdx | 0 .../user-interaction-instrumentation.mdx | 0 .../dealing-with-cors-issues/index.mdx | 0 .../tracing/trace-propagation/index.mdx | 0 .../tracing/troubleshooting/index.mdx | 0 .../{ => common}/troubleshooting/index.mdx | 0 .../{ => common}/upload-debug/index.mdx | 0 .../{ => common}/usage/event-information.mdx | 0 .../react-native/{ => common}/usage/index.mdx | 0 .../usage/sdk-fingerprinting/index.mdx | 0 .../{ => common}/usage/set-level/index.mdx | 0 ...ile-user-feedback-widget-customization.png | Bin .../user-feedback/configuration/index.mdx | 0 .../img/user-feedback-rn-android-widget.png | Bin .../img/user-feedback-rn-ios-widget.png | Bin .../{ => common}/user-feedback/index.mdx | 0 docs/platforms/react-native/config.yml | 16 ++ .../react-native/guides/expo/index.mdx | 176 ++++++++++++++++++ src/components/platformIcon.tsx | 15 ++ src/icons/expo.svg | 6 + 131 files changed, 214 insertions(+), 1 deletion(-) rename docs/platforms/react-native/{ => common}/ai-agent-monitoring/index.mdx (100%) rename docs/platforms/react-native/{ => common}/build-distribution/index.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/app-hangs.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/draining.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/environments.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/filtering.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/index.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/options.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/releases.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/sampling.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/touchevents.mdx (100%) rename docs/platforms/react-native/{ => common}/configuration/webview.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/apple-privacy-manifest.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/data-collected.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/file-formats/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/identifiers/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/source-context/img/source-context-screenshot.png (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/source-context/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/symbol-servers/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/debug-files/upload/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/index.mdx (100%) rename docs/platforms/react-native/{ => common}/data-management/sensitive-data/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/attachments/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/breadcrumbs/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/context/default-context.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/context/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/event-processors/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/identify-user/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/scopes/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/screenshots/img/screenshot-list-example.png (100%) rename docs/platforms/react-native/{ => common}/enriching-events/screenshots/img/screenshot-thumbnail.png (100%) rename docs/platforms/react-native/{ => common}/enriching-events/screenshots/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/tags/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/transaction-name/index.mdx (100%) rename docs/platforms/react-native/{ => common}/enriching-events/viewhierarchy/index.mdx (100%) rename docs/platforms/react-native/{ => common}/feature-flags/index.mdx (100%) rename docs/platforms/react-native/{ => common}/features/index.mdx (100%) rename docs/platforms/react-native/{ => common}/index.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/anthropic.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/component-names.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/component-tracking.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/consola.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/console-logging.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/custom.mdx (98%) rename docs/platforms/react-native/{ => common}/integrations/deeplink.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/default.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/error-boundary.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/google-genai.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/graphql.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/img/errorboundary-error.png (100%) rename docs/platforms/react-native/{ => common}/integrations/index.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/langchain.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/langgraph.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/openai.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/plugin.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/redux.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/spotlight.mdx (100%) rename docs/platforms/react-native/{ => common}/integrations/unhandled-rejections.mdx (100%) rename docs/platforms/react-native/{ => common}/logs/index.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/app-start-error-capture.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/expo.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/expo/eas-build-hooks.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/expo/expo-updates.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/expo/gradle.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/hermes.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/index.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/manual-setup.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/metro.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/native-init.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/playground.mdx (100%) rename docs/platforms/react-native/{ => common}/manual-setup/ram-bundles.mdx (100%) rename docs/platforms/react-native/{ => common}/metrics/index.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/before-v5.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/index.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/sentry-expo.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/v5-to-v6.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/v6-to-v7.mdx (100%) rename docs/platforms/react-native/{ => common}/migration/v7-to-v8.mdx (100%) rename docs/platforms/react-native/{ => common}/overhead/index.mdx (100%) rename docs/platforms/react-native/{ => common}/profiling/index.mdx (100%) rename docs/platforms/react-native/{ => common}/profiling/troubleshooting/index.mdx (100%) rename docs/platforms/react-native/{ => common}/releases/index.mdx (100%) rename docs/platforms/react-native/{ => common}/session-replay/index.mdx (100%) rename docs/platforms/react-native/{ => common}/session-replay/performance-overhead.mdx (100%) rename docs/platforms/react-native/{ => common}/session-replay/privacy/index.mdx (100%) rename docs/platforms/react-native/{ => common}/size-analysis/index.mdx (100%) rename docs/platforms/react-native/{ => common}/size-analysis/insights.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/debug-ids.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/index.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/troubleshooting/img/001-manual-sourcemaps.png (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/troubleshooting/index.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/troubleshooting/legacy-uploading-methods.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/troubleshooting/optional-release-and-distribution.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/codepush.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/expo-advanced.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/expo.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/hermes.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/index.mdx (100%) rename docs/platforms/react-native/{ => common}/sourcemaps/uploading/jsc.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/index.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/automatic-instrumentation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/custom-instrumentation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/custom-navigation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/expo-resources.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/expo-router.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/index.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/performance-metrics.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/react-native-navigation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/react-navigation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/time-to-display.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/instrumentation/user-interaction-instrumentation.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/trace-propagation/dealing-with-cors-issues/index.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/trace-propagation/index.mdx (100%) rename docs/platforms/react-native/{ => common}/tracing/troubleshooting/index.mdx (100%) rename docs/platforms/react-native/{ => common}/troubleshooting/index.mdx (100%) rename docs/platforms/react-native/{ => common}/upload-debug/index.mdx (100%) rename docs/platforms/react-native/{ => common}/usage/event-information.mdx (100%) rename docs/platforms/react-native/{ => common}/usage/index.mdx (100%) rename docs/platforms/react-native/{ => common}/usage/sdk-fingerprinting/index.mdx (100%) rename docs/platforms/react-native/{ => common}/usage/set-level/index.mdx (100%) rename docs/platforms/react-native/{ => common}/user-feedback/configuration/img/mobile-user-feedback-widget-customization.png (100%) rename docs/platforms/react-native/{ => common}/user-feedback/configuration/index.mdx (100%) rename docs/platforms/react-native/{ => common}/user-feedback/img/user-feedback-rn-android-widget.png (100%) rename docs/platforms/react-native/{ => common}/user-feedback/img/user-feedback-rn-ios-widget.png (100%) rename docs/platforms/react-native/{ => common}/user-feedback/index.mdx (100%) create mode 100644 docs/platforms/react-native/config.yml create mode 100644 docs/platforms/react-native/guides/expo/index.mdx create mode 100644 src/icons/expo.svg diff --git a/docs/platforms/react-native/ai-agent-monitoring/index.mdx b/docs/platforms/react-native/common/ai-agent-monitoring/index.mdx similarity index 100% rename from docs/platforms/react-native/ai-agent-monitoring/index.mdx rename to docs/platforms/react-native/common/ai-agent-monitoring/index.mdx diff --git a/docs/platforms/react-native/build-distribution/index.mdx b/docs/platforms/react-native/common/build-distribution/index.mdx similarity index 100% rename from docs/platforms/react-native/build-distribution/index.mdx rename to docs/platforms/react-native/common/build-distribution/index.mdx diff --git a/docs/platforms/react-native/configuration/app-hangs.mdx b/docs/platforms/react-native/common/configuration/app-hangs.mdx similarity index 100% rename from docs/platforms/react-native/configuration/app-hangs.mdx rename to docs/platforms/react-native/common/configuration/app-hangs.mdx diff --git a/docs/platforms/react-native/configuration/draining.mdx b/docs/platforms/react-native/common/configuration/draining.mdx similarity index 100% rename from docs/platforms/react-native/configuration/draining.mdx rename to docs/platforms/react-native/common/configuration/draining.mdx diff --git a/docs/platforms/react-native/configuration/environments.mdx b/docs/platforms/react-native/common/configuration/environments.mdx similarity index 100% rename from docs/platforms/react-native/configuration/environments.mdx rename to docs/platforms/react-native/common/configuration/environments.mdx diff --git a/docs/platforms/react-native/configuration/filtering.mdx b/docs/platforms/react-native/common/configuration/filtering.mdx similarity index 100% rename from docs/platforms/react-native/configuration/filtering.mdx rename to docs/platforms/react-native/common/configuration/filtering.mdx diff --git a/docs/platforms/react-native/configuration/index.mdx b/docs/platforms/react-native/common/configuration/index.mdx similarity index 100% rename from docs/platforms/react-native/configuration/index.mdx rename to docs/platforms/react-native/common/configuration/index.mdx diff --git a/docs/platforms/react-native/configuration/options.mdx b/docs/platforms/react-native/common/configuration/options.mdx similarity index 100% rename from docs/platforms/react-native/configuration/options.mdx rename to docs/platforms/react-native/common/configuration/options.mdx diff --git a/docs/platforms/react-native/configuration/releases.mdx b/docs/platforms/react-native/common/configuration/releases.mdx similarity index 100% rename from docs/platforms/react-native/configuration/releases.mdx rename to docs/platforms/react-native/common/configuration/releases.mdx diff --git a/docs/platforms/react-native/configuration/sampling.mdx b/docs/platforms/react-native/common/configuration/sampling.mdx similarity index 100% rename from docs/platforms/react-native/configuration/sampling.mdx rename to docs/platforms/react-native/common/configuration/sampling.mdx diff --git a/docs/platforms/react-native/configuration/touchevents.mdx b/docs/platforms/react-native/common/configuration/touchevents.mdx similarity index 100% rename from docs/platforms/react-native/configuration/touchevents.mdx rename to docs/platforms/react-native/common/configuration/touchevents.mdx diff --git a/docs/platforms/react-native/configuration/webview.mdx b/docs/platforms/react-native/common/configuration/webview.mdx similarity index 100% rename from docs/platforms/react-native/configuration/webview.mdx rename to docs/platforms/react-native/common/configuration/webview.mdx diff --git a/docs/platforms/react-native/data-management/apple-privacy-manifest.mdx b/docs/platforms/react-native/common/data-management/apple-privacy-manifest.mdx similarity index 100% rename from docs/platforms/react-native/data-management/apple-privacy-manifest.mdx rename to docs/platforms/react-native/common/data-management/apple-privacy-manifest.mdx diff --git a/docs/platforms/react-native/data-management/data-collected.mdx b/docs/platforms/react-native/common/data-management/data-collected.mdx similarity index 100% rename from docs/platforms/react-native/data-management/data-collected.mdx rename to docs/platforms/react-native/common/data-management/data-collected.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/file-formats/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/file-formats/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/file-formats/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/file-formats/index.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/identifiers/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/identifiers/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/identifiers/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/identifiers/index.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/index.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/source-context/img/source-context-screenshot.png b/docs/platforms/react-native/common/data-management/debug-files/source-context/img/source-context-screenshot.png similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/source-context/img/source-context-screenshot.png rename to docs/platforms/react-native/common/data-management/debug-files/source-context/img/source-context-screenshot.png diff --git a/docs/platforms/react-native/data-management/debug-files/source-context/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/source-context/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/source-context/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/source-context/index.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/symbol-servers/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/symbol-servers/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/symbol-servers/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/symbol-servers/index.mdx diff --git a/docs/platforms/react-native/data-management/debug-files/upload/index.mdx b/docs/platforms/react-native/common/data-management/debug-files/upload/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/debug-files/upload/index.mdx rename to docs/platforms/react-native/common/data-management/debug-files/upload/index.mdx diff --git a/docs/platforms/react-native/data-management/index.mdx b/docs/platforms/react-native/common/data-management/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/index.mdx rename to docs/platforms/react-native/common/data-management/index.mdx diff --git a/docs/platforms/react-native/data-management/sensitive-data/index.mdx b/docs/platforms/react-native/common/data-management/sensitive-data/index.mdx similarity index 100% rename from docs/platforms/react-native/data-management/sensitive-data/index.mdx rename to docs/platforms/react-native/common/data-management/sensitive-data/index.mdx diff --git a/docs/platforms/react-native/enriching-events/attachments/index.mdx b/docs/platforms/react-native/common/enriching-events/attachments/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/attachments/index.mdx rename to docs/platforms/react-native/common/enriching-events/attachments/index.mdx diff --git a/docs/platforms/react-native/enriching-events/breadcrumbs/index.mdx b/docs/platforms/react-native/common/enriching-events/breadcrumbs/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/breadcrumbs/index.mdx rename to docs/platforms/react-native/common/enriching-events/breadcrumbs/index.mdx diff --git a/docs/platforms/react-native/enriching-events/context/default-context.mdx b/docs/platforms/react-native/common/enriching-events/context/default-context.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/context/default-context.mdx rename to docs/platforms/react-native/common/enriching-events/context/default-context.mdx diff --git a/docs/platforms/react-native/enriching-events/context/index.mdx b/docs/platforms/react-native/common/enriching-events/context/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/context/index.mdx rename to docs/platforms/react-native/common/enriching-events/context/index.mdx diff --git a/docs/platforms/react-native/enriching-events/event-processors/index.mdx b/docs/platforms/react-native/common/enriching-events/event-processors/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/event-processors/index.mdx rename to docs/platforms/react-native/common/enriching-events/event-processors/index.mdx diff --git a/docs/platforms/react-native/enriching-events/identify-user/index.mdx b/docs/platforms/react-native/common/enriching-events/identify-user/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/identify-user/index.mdx rename to docs/platforms/react-native/common/enriching-events/identify-user/index.mdx diff --git a/docs/platforms/react-native/enriching-events/index.mdx b/docs/platforms/react-native/common/enriching-events/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/index.mdx rename to docs/platforms/react-native/common/enriching-events/index.mdx diff --git a/docs/platforms/react-native/enriching-events/scopes/index.mdx b/docs/platforms/react-native/common/enriching-events/scopes/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/scopes/index.mdx rename to docs/platforms/react-native/common/enriching-events/scopes/index.mdx diff --git a/docs/platforms/react-native/enriching-events/screenshots/img/screenshot-list-example.png b/docs/platforms/react-native/common/enriching-events/screenshots/img/screenshot-list-example.png similarity index 100% rename from docs/platforms/react-native/enriching-events/screenshots/img/screenshot-list-example.png rename to docs/platforms/react-native/common/enriching-events/screenshots/img/screenshot-list-example.png diff --git a/docs/platforms/react-native/enriching-events/screenshots/img/screenshot-thumbnail.png b/docs/platforms/react-native/common/enriching-events/screenshots/img/screenshot-thumbnail.png similarity index 100% rename from docs/platforms/react-native/enriching-events/screenshots/img/screenshot-thumbnail.png rename to docs/platforms/react-native/common/enriching-events/screenshots/img/screenshot-thumbnail.png diff --git a/docs/platforms/react-native/enriching-events/screenshots/index.mdx b/docs/platforms/react-native/common/enriching-events/screenshots/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/screenshots/index.mdx rename to docs/platforms/react-native/common/enriching-events/screenshots/index.mdx diff --git a/docs/platforms/react-native/enriching-events/tags/index.mdx b/docs/platforms/react-native/common/enriching-events/tags/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/tags/index.mdx rename to docs/platforms/react-native/common/enriching-events/tags/index.mdx diff --git a/docs/platforms/react-native/enriching-events/transaction-name/index.mdx b/docs/platforms/react-native/common/enriching-events/transaction-name/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/transaction-name/index.mdx rename to docs/platforms/react-native/common/enriching-events/transaction-name/index.mdx diff --git a/docs/platforms/react-native/enriching-events/viewhierarchy/index.mdx b/docs/platforms/react-native/common/enriching-events/viewhierarchy/index.mdx similarity index 100% rename from docs/platforms/react-native/enriching-events/viewhierarchy/index.mdx rename to docs/platforms/react-native/common/enriching-events/viewhierarchy/index.mdx diff --git a/docs/platforms/react-native/feature-flags/index.mdx b/docs/platforms/react-native/common/feature-flags/index.mdx similarity index 100% rename from docs/platforms/react-native/feature-flags/index.mdx rename to docs/platforms/react-native/common/feature-flags/index.mdx diff --git a/docs/platforms/react-native/features/index.mdx b/docs/platforms/react-native/common/features/index.mdx similarity index 100% rename from docs/platforms/react-native/features/index.mdx rename to docs/platforms/react-native/common/features/index.mdx diff --git a/docs/platforms/react-native/index.mdx b/docs/platforms/react-native/common/index.mdx similarity index 100% rename from docs/platforms/react-native/index.mdx rename to docs/platforms/react-native/common/index.mdx diff --git a/docs/platforms/react-native/integrations/anthropic.mdx b/docs/platforms/react-native/common/integrations/anthropic.mdx similarity index 100% rename from docs/platforms/react-native/integrations/anthropic.mdx rename to docs/platforms/react-native/common/integrations/anthropic.mdx diff --git a/docs/platforms/react-native/integrations/component-names.mdx b/docs/platforms/react-native/common/integrations/component-names.mdx similarity index 100% rename from docs/platforms/react-native/integrations/component-names.mdx rename to docs/platforms/react-native/common/integrations/component-names.mdx diff --git a/docs/platforms/react-native/integrations/component-tracking.mdx b/docs/platforms/react-native/common/integrations/component-tracking.mdx similarity index 100% rename from docs/platforms/react-native/integrations/component-tracking.mdx rename to docs/platforms/react-native/common/integrations/component-tracking.mdx diff --git a/docs/platforms/react-native/integrations/consola.mdx b/docs/platforms/react-native/common/integrations/consola.mdx similarity index 100% rename from docs/platforms/react-native/integrations/consola.mdx rename to docs/platforms/react-native/common/integrations/consola.mdx diff --git a/docs/platforms/react-native/integrations/console-logging.mdx b/docs/platforms/react-native/common/integrations/console-logging.mdx similarity index 100% rename from docs/platforms/react-native/integrations/console-logging.mdx rename to docs/platforms/react-native/common/integrations/console-logging.mdx diff --git a/docs/platforms/react-native/integrations/custom.mdx b/docs/platforms/react-native/common/integrations/custom.mdx similarity index 98% rename from docs/platforms/react-native/integrations/custom.mdx rename to docs/platforms/react-native/common/integrations/custom.mdx index 9bd3727c2fca8..32479554e3684 100644 --- a/docs/platforms/react-native/integrations/custom.mdx +++ b/docs/platforms/react-native/common/integrations/custom.mdx @@ -6,7 +6,7 @@ description: "Learn how to enable a custom integration." In addition to the integrations that come with the SDK, you can also write custom integrations. -Custom integration must conform to the [Integration interface](https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/types-hoist/integration.ts). +Custom integration must conform to the [Integration interface](https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/types/integration.ts). A custom integration can be created and added to the SDK as follows: diff --git a/docs/platforms/react-native/integrations/deeplink.mdx b/docs/platforms/react-native/common/integrations/deeplink.mdx similarity index 100% rename from docs/platforms/react-native/integrations/deeplink.mdx rename to docs/platforms/react-native/common/integrations/deeplink.mdx diff --git a/docs/platforms/react-native/integrations/default.mdx b/docs/platforms/react-native/common/integrations/default.mdx similarity index 100% rename from docs/platforms/react-native/integrations/default.mdx rename to docs/platforms/react-native/common/integrations/default.mdx diff --git a/docs/platforms/react-native/integrations/error-boundary.mdx b/docs/platforms/react-native/common/integrations/error-boundary.mdx similarity index 100% rename from docs/platforms/react-native/integrations/error-boundary.mdx rename to docs/platforms/react-native/common/integrations/error-boundary.mdx diff --git a/docs/platforms/react-native/integrations/google-genai.mdx b/docs/platforms/react-native/common/integrations/google-genai.mdx similarity index 100% rename from docs/platforms/react-native/integrations/google-genai.mdx rename to docs/platforms/react-native/common/integrations/google-genai.mdx diff --git a/docs/platforms/react-native/integrations/graphql.mdx b/docs/platforms/react-native/common/integrations/graphql.mdx similarity index 100% rename from docs/platforms/react-native/integrations/graphql.mdx rename to docs/platforms/react-native/common/integrations/graphql.mdx diff --git a/docs/platforms/react-native/integrations/img/errorboundary-error.png b/docs/platforms/react-native/common/integrations/img/errorboundary-error.png similarity index 100% rename from docs/platforms/react-native/integrations/img/errorboundary-error.png rename to docs/platforms/react-native/common/integrations/img/errorboundary-error.png diff --git a/docs/platforms/react-native/integrations/index.mdx b/docs/platforms/react-native/common/integrations/index.mdx similarity index 100% rename from docs/platforms/react-native/integrations/index.mdx rename to docs/platforms/react-native/common/integrations/index.mdx diff --git a/docs/platforms/react-native/integrations/langchain.mdx b/docs/platforms/react-native/common/integrations/langchain.mdx similarity index 100% rename from docs/platforms/react-native/integrations/langchain.mdx rename to docs/platforms/react-native/common/integrations/langchain.mdx diff --git a/docs/platforms/react-native/integrations/langgraph.mdx b/docs/platforms/react-native/common/integrations/langgraph.mdx similarity index 100% rename from docs/platforms/react-native/integrations/langgraph.mdx rename to docs/platforms/react-native/common/integrations/langgraph.mdx diff --git a/docs/platforms/react-native/integrations/openai.mdx b/docs/platforms/react-native/common/integrations/openai.mdx similarity index 100% rename from docs/platforms/react-native/integrations/openai.mdx rename to docs/platforms/react-native/common/integrations/openai.mdx diff --git a/docs/platforms/react-native/integrations/plugin.mdx b/docs/platforms/react-native/common/integrations/plugin.mdx similarity index 100% rename from docs/platforms/react-native/integrations/plugin.mdx rename to docs/platforms/react-native/common/integrations/plugin.mdx diff --git a/docs/platforms/react-native/integrations/redux.mdx b/docs/platforms/react-native/common/integrations/redux.mdx similarity index 100% rename from docs/platforms/react-native/integrations/redux.mdx rename to docs/platforms/react-native/common/integrations/redux.mdx diff --git a/docs/platforms/react-native/integrations/spotlight.mdx b/docs/platforms/react-native/common/integrations/spotlight.mdx similarity index 100% rename from docs/platforms/react-native/integrations/spotlight.mdx rename to docs/platforms/react-native/common/integrations/spotlight.mdx diff --git a/docs/platforms/react-native/integrations/unhandled-rejections.mdx b/docs/platforms/react-native/common/integrations/unhandled-rejections.mdx similarity index 100% rename from docs/platforms/react-native/integrations/unhandled-rejections.mdx rename to docs/platforms/react-native/common/integrations/unhandled-rejections.mdx diff --git a/docs/platforms/react-native/logs/index.mdx b/docs/platforms/react-native/common/logs/index.mdx similarity index 100% rename from docs/platforms/react-native/logs/index.mdx rename to docs/platforms/react-native/common/logs/index.mdx diff --git a/docs/platforms/react-native/manual-setup/app-start-error-capture.mdx b/docs/platforms/react-native/common/manual-setup/app-start-error-capture.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/app-start-error-capture.mdx rename to docs/platforms/react-native/common/manual-setup/app-start-error-capture.mdx diff --git a/docs/platforms/react-native/manual-setup/expo.mdx b/docs/platforms/react-native/common/manual-setup/expo.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/expo.mdx rename to docs/platforms/react-native/common/manual-setup/expo.mdx diff --git a/docs/platforms/react-native/manual-setup/expo/eas-build-hooks.mdx b/docs/platforms/react-native/common/manual-setup/expo/eas-build-hooks.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/expo/eas-build-hooks.mdx rename to docs/platforms/react-native/common/manual-setup/expo/eas-build-hooks.mdx diff --git a/docs/platforms/react-native/manual-setup/expo/expo-updates.mdx b/docs/platforms/react-native/common/manual-setup/expo/expo-updates.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/expo/expo-updates.mdx rename to docs/platforms/react-native/common/manual-setup/expo/expo-updates.mdx diff --git a/docs/platforms/react-native/manual-setup/expo/gradle.mdx b/docs/platforms/react-native/common/manual-setup/expo/gradle.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/expo/gradle.mdx rename to docs/platforms/react-native/common/manual-setup/expo/gradle.mdx diff --git a/docs/platforms/react-native/manual-setup/hermes.mdx b/docs/platforms/react-native/common/manual-setup/hermes.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/hermes.mdx rename to docs/platforms/react-native/common/manual-setup/hermes.mdx diff --git a/docs/platforms/react-native/manual-setup/index.mdx b/docs/platforms/react-native/common/manual-setup/index.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/index.mdx rename to docs/platforms/react-native/common/manual-setup/index.mdx diff --git a/docs/platforms/react-native/manual-setup/manual-setup.mdx b/docs/platforms/react-native/common/manual-setup/manual-setup.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/manual-setup.mdx rename to docs/platforms/react-native/common/manual-setup/manual-setup.mdx diff --git a/docs/platforms/react-native/manual-setup/metro.mdx b/docs/platforms/react-native/common/manual-setup/metro.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/metro.mdx rename to docs/platforms/react-native/common/manual-setup/metro.mdx diff --git a/docs/platforms/react-native/manual-setup/native-init.mdx b/docs/platforms/react-native/common/manual-setup/native-init.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/native-init.mdx rename to docs/platforms/react-native/common/manual-setup/native-init.mdx diff --git a/docs/platforms/react-native/manual-setup/playground.mdx b/docs/platforms/react-native/common/manual-setup/playground.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/playground.mdx rename to docs/platforms/react-native/common/manual-setup/playground.mdx diff --git a/docs/platforms/react-native/manual-setup/ram-bundles.mdx b/docs/platforms/react-native/common/manual-setup/ram-bundles.mdx similarity index 100% rename from docs/platforms/react-native/manual-setup/ram-bundles.mdx rename to docs/platforms/react-native/common/manual-setup/ram-bundles.mdx diff --git a/docs/platforms/react-native/metrics/index.mdx b/docs/platforms/react-native/common/metrics/index.mdx similarity index 100% rename from docs/platforms/react-native/metrics/index.mdx rename to docs/platforms/react-native/common/metrics/index.mdx diff --git a/docs/platforms/react-native/migration/before-v5.mdx b/docs/platforms/react-native/common/migration/before-v5.mdx similarity index 100% rename from docs/platforms/react-native/migration/before-v5.mdx rename to docs/platforms/react-native/common/migration/before-v5.mdx diff --git a/docs/platforms/react-native/migration/index.mdx b/docs/platforms/react-native/common/migration/index.mdx similarity index 100% rename from docs/platforms/react-native/migration/index.mdx rename to docs/platforms/react-native/common/migration/index.mdx diff --git a/docs/platforms/react-native/migration/sentry-expo.mdx b/docs/platforms/react-native/common/migration/sentry-expo.mdx similarity index 100% rename from docs/platforms/react-native/migration/sentry-expo.mdx rename to docs/platforms/react-native/common/migration/sentry-expo.mdx diff --git a/docs/platforms/react-native/migration/v5-to-v6.mdx b/docs/platforms/react-native/common/migration/v5-to-v6.mdx similarity index 100% rename from docs/platforms/react-native/migration/v5-to-v6.mdx rename to docs/platforms/react-native/common/migration/v5-to-v6.mdx diff --git a/docs/platforms/react-native/migration/v6-to-v7.mdx b/docs/platforms/react-native/common/migration/v6-to-v7.mdx similarity index 100% rename from docs/platforms/react-native/migration/v6-to-v7.mdx rename to docs/platforms/react-native/common/migration/v6-to-v7.mdx diff --git a/docs/platforms/react-native/migration/v7-to-v8.mdx b/docs/platforms/react-native/common/migration/v7-to-v8.mdx similarity index 100% rename from docs/platforms/react-native/migration/v7-to-v8.mdx rename to docs/platforms/react-native/common/migration/v7-to-v8.mdx diff --git a/docs/platforms/react-native/overhead/index.mdx b/docs/platforms/react-native/common/overhead/index.mdx similarity index 100% rename from docs/platforms/react-native/overhead/index.mdx rename to docs/platforms/react-native/common/overhead/index.mdx diff --git a/docs/platforms/react-native/profiling/index.mdx b/docs/platforms/react-native/common/profiling/index.mdx similarity index 100% rename from docs/platforms/react-native/profiling/index.mdx rename to docs/platforms/react-native/common/profiling/index.mdx diff --git a/docs/platforms/react-native/profiling/troubleshooting/index.mdx b/docs/platforms/react-native/common/profiling/troubleshooting/index.mdx similarity index 100% rename from docs/platforms/react-native/profiling/troubleshooting/index.mdx rename to docs/platforms/react-native/common/profiling/troubleshooting/index.mdx diff --git a/docs/platforms/react-native/releases/index.mdx b/docs/platforms/react-native/common/releases/index.mdx similarity index 100% rename from docs/platforms/react-native/releases/index.mdx rename to docs/platforms/react-native/common/releases/index.mdx diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/common/session-replay/index.mdx similarity index 100% rename from docs/platforms/react-native/session-replay/index.mdx rename to docs/platforms/react-native/common/session-replay/index.mdx diff --git a/docs/platforms/react-native/session-replay/performance-overhead.mdx b/docs/platforms/react-native/common/session-replay/performance-overhead.mdx similarity index 100% rename from docs/platforms/react-native/session-replay/performance-overhead.mdx rename to docs/platforms/react-native/common/session-replay/performance-overhead.mdx diff --git a/docs/platforms/react-native/session-replay/privacy/index.mdx b/docs/platforms/react-native/common/session-replay/privacy/index.mdx similarity index 100% rename from docs/platforms/react-native/session-replay/privacy/index.mdx rename to docs/platforms/react-native/common/session-replay/privacy/index.mdx diff --git a/docs/platforms/react-native/size-analysis/index.mdx b/docs/platforms/react-native/common/size-analysis/index.mdx similarity index 100% rename from docs/platforms/react-native/size-analysis/index.mdx rename to docs/platforms/react-native/common/size-analysis/index.mdx diff --git a/docs/platforms/react-native/size-analysis/insights.mdx b/docs/platforms/react-native/common/size-analysis/insights.mdx similarity index 100% rename from docs/platforms/react-native/size-analysis/insights.mdx rename to docs/platforms/react-native/common/size-analysis/insights.mdx diff --git a/docs/platforms/react-native/sourcemaps/debug-ids.mdx b/docs/platforms/react-native/common/sourcemaps/debug-ids.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/debug-ids.mdx rename to docs/platforms/react-native/common/sourcemaps/debug-ids.mdx diff --git a/docs/platforms/react-native/sourcemaps/index.mdx b/docs/platforms/react-native/common/sourcemaps/index.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/index.mdx rename to docs/platforms/react-native/common/sourcemaps/index.mdx diff --git a/docs/platforms/react-native/sourcemaps/troubleshooting/img/001-manual-sourcemaps.png b/docs/platforms/react-native/common/sourcemaps/troubleshooting/img/001-manual-sourcemaps.png similarity index 100% rename from docs/platforms/react-native/sourcemaps/troubleshooting/img/001-manual-sourcemaps.png rename to docs/platforms/react-native/common/sourcemaps/troubleshooting/img/001-manual-sourcemaps.png diff --git a/docs/platforms/react-native/sourcemaps/troubleshooting/index.mdx b/docs/platforms/react-native/common/sourcemaps/troubleshooting/index.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/troubleshooting/index.mdx rename to docs/platforms/react-native/common/sourcemaps/troubleshooting/index.mdx diff --git a/docs/platforms/react-native/sourcemaps/troubleshooting/legacy-uploading-methods.mdx b/docs/platforms/react-native/common/sourcemaps/troubleshooting/legacy-uploading-methods.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/troubleshooting/legacy-uploading-methods.mdx rename to docs/platforms/react-native/common/sourcemaps/troubleshooting/legacy-uploading-methods.mdx diff --git a/docs/platforms/react-native/sourcemaps/troubleshooting/optional-release-and-distribution.mdx b/docs/platforms/react-native/common/sourcemaps/troubleshooting/optional-release-and-distribution.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/troubleshooting/optional-release-and-distribution.mdx rename to docs/platforms/react-native/common/sourcemaps/troubleshooting/optional-release-and-distribution.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/codepush.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/codepush.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/codepush.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/codepush.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/expo-advanced.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/expo-advanced.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/expo-advanced.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/expo-advanced.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/expo.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/expo.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/expo.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/expo.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/hermes.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/hermes.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/hermes.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/hermes.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/index.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/index.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/index.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/index.mdx diff --git a/docs/platforms/react-native/sourcemaps/uploading/jsc.mdx b/docs/platforms/react-native/common/sourcemaps/uploading/jsc.mdx similarity index 100% rename from docs/platforms/react-native/sourcemaps/uploading/jsc.mdx rename to docs/platforms/react-native/common/sourcemaps/uploading/jsc.mdx diff --git a/docs/platforms/react-native/tracing/index.mdx b/docs/platforms/react-native/common/tracing/index.mdx similarity index 100% rename from docs/platforms/react-native/tracing/index.mdx rename to docs/platforms/react-native/common/tracing/index.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/automatic-instrumentation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/automatic-instrumentation.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/custom-instrumentation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/custom-instrumentation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/custom-instrumentation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/custom-instrumentation.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/custom-navigation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/custom-navigation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/custom-navigation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/custom-navigation.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/expo-resources.mdx b/docs/platforms/react-native/common/tracing/instrumentation/expo-resources.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/expo-resources.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/expo-resources.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/expo-router.mdx b/docs/platforms/react-native/common/tracing/instrumentation/expo-router.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/expo-router.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/expo-router.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/index.mdx b/docs/platforms/react-native/common/tracing/instrumentation/index.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/index.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/index.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/performance-metrics.mdx b/docs/platforms/react-native/common/tracing/instrumentation/performance-metrics.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/performance-metrics.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/performance-metrics.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/react-native-navigation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/react-native-navigation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/react-native-navigation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/react-native-navigation.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/react-navigation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/react-navigation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/react-navigation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/react-navigation.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/time-to-display.mdx b/docs/platforms/react-native/common/tracing/instrumentation/time-to-display.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/time-to-display.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/time-to-display.mdx diff --git a/docs/platforms/react-native/tracing/instrumentation/user-interaction-instrumentation.mdx b/docs/platforms/react-native/common/tracing/instrumentation/user-interaction-instrumentation.mdx similarity index 100% rename from docs/platforms/react-native/tracing/instrumentation/user-interaction-instrumentation.mdx rename to docs/platforms/react-native/common/tracing/instrumentation/user-interaction-instrumentation.mdx diff --git a/docs/platforms/react-native/tracing/trace-propagation/dealing-with-cors-issues/index.mdx b/docs/platforms/react-native/common/tracing/trace-propagation/dealing-with-cors-issues/index.mdx similarity index 100% rename from docs/platforms/react-native/tracing/trace-propagation/dealing-with-cors-issues/index.mdx rename to docs/platforms/react-native/common/tracing/trace-propagation/dealing-with-cors-issues/index.mdx diff --git a/docs/platforms/react-native/tracing/trace-propagation/index.mdx b/docs/platforms/react-native/common/tracing/trace-propagation/index.mdx similarity index 100% rename from docs/platforms/react-native/tracing/trace-propagation/index.mdx rename to docs/platforms/react-native/common/tracing/trace-propagation/index.mdx diff --git a/docs/platforms/react-native/tracing/troubleshooting/index.mdx b/docs/platforms/react-native/common/tracing/troubleshooting/index.mdx similarity index 100% rename from docs/platforms/react-native/tracing/troubleshooting/index.mdx rename to docs/platforms/react-native/common/tracing/troubleshooting/index.mdx diff --git a/docs/platforms/react-native/troubleshooting/index.mdx b/docs/platforms/react-native/common/troubleshooting/index.mdx similarity index 100% rename from docs/platforms/react-native/troubleshooting/index.mdx rename to docs/platforms/react-native/common/troubleshooting/index.mdx diff --git a/docs/platforms/react-native/upload-debug/index.mdx b/docs/platforms/react-native/common/upload-debug/index.mdx similarity index 100% rename from docs/platforms/react-native/upload-debug/index.mdx rename to docs/platforms/react-native/common/upload-debug/index.mdx diff --git a/docs/platforms/react-native/usage/event-information.mdx b/docs/platforms/react-native/common/usage/event-information.mdx similarity index 100% rename from docs/platforms/react-native/usage/event-information.mdx rename to docs/platforms/react-native/common/usage/event-information.mdx diff --git a/docs/platforms/react-native/usage/index.mdx b/docs/platforms/react-native/common/usage/index.mdx similarity index 100% rename from docs/platforms/react-native/usage/index.mdx rename to docs/platforms/react-native/common/usage/index.mdx diff --git a/docs/platforms/react-native/usage/sdk-fingerprinting/index.mdx b/docs/platforms/react-native/common/usage/sdk-fingerprinting/index.mdx similarity index 100% rename from docs/platforms/react-native/usage/sdk-fingerprinting/index.mdx rename to docs/platforms/react-native/common/usage/sdk-fingerprinting/index.mdx diff --git a/docs/platforms/react-native/usage/set-level/index.mdx b/docs/platforms/react-native/common/usage/set-level/index.mdx similarity index 100% rename from docs/platforms/react-native/usage/set-level/index.mdx rename to docs/platforms/react-native/common/usage/set-level/index.mdx diff --git a/docs/platforms/react-native/user-feedback/configuration/img/mobile-user-feedback-widget-customization.png b/docs/platforms/react-native/common/user-feedback/configuration/img/mobile-user-feedback-widget-customization.png similarity index 100% rename from docs/platforms/react-native/user-feedback/configuration/img/mobile-user-feedback-widget-customization.png rename to docs/platforms/react-native/common/user-feedback/configuration/img/mobile-user-feedback-widget-customization.png diff --git a/docs/platforms/react-native/user-feedback/configuration/index.mdx b/docs/platforms/react-native/common/user-feedback/configuration/index.mdx similarity index 100% rename from docs/platforms/react-native/user-feedback/configuration/index.mdx rename to docs/platforms/react-native/common/user-feedback/configuration/index.mdx diff --git a/docs/platforms/react-native/user-feedback/img/user-feedback-rn-android-widget.png b/docs/platforms/react-native/common/user-feedback/img/user-feedback-rn-android-widget.png similarity index 100% rename from docs/platforms/react-native/user-feedback/img/user-feedback-rn-android-widget.png rename to docs/platforms/react-native/common/user-feedback/img/user-feedback-rn-android-widget.png diff --git a/docs/platforms/react-native/user-feedback/img/user-feedback-rn-ios-widget.png b/docs/platforms/react-native/common/user-feedback/img/user-feedback-rn-ios-widget.png similarity index 100% rename from docs/platforms/react-native/user-feedback/img/user-feedback-rn-ios-widget.png rename to docs/platforms/react-native/common/user-feedback/img/user-feedback-rn-ios-widget.png diff --git a/docs/platforms/react-native/user-feedback/index.mdx b/docs/platforms/react-native/common/user-feedback/index.mdx similarity index 100% rename from docs/platforms/react-native/user-feedback/index.mdx rename to docs/platforms/react-native/common/user-feedback/index.mdx diff --git a/docs/platforms/react-native/config.yml b/docs/platforms/react-native/config.yml new file mode 100644 index 0000000000000..efaa260fe3741 --- /dev/null +++ b/docs/platforms/react-native/config.yml @@ -0,0 +1,16 @@ +title: React Native +# platformTitle is the dropdown/group label on the home page and platform +# selector. Setting it injects the platform itself as a default guide, so the +# "React Native" group lists both "React Native" (bare/CLI) and "Expo" as +# siblings (mirrors how "JavaScript" groups "Browser JavaScript" + frameworks). +platformTitle: React Native +sidebar_title: React Native +caseStyle: camelCase +supportLevel: production +sdk: sentry.javascript.react-native +fallbackPlatform: javascript +categories: + - mobile +keywords: + - react-native + - expo diff --git a/docs/platforms/react-native/guides/expo/index.mdx b/docs/platforms/react-native/guides/expo/index.mdx new file mode 100644 index 0000000000000..cd2ace243c0eb --- /dev/null +++ b/docs/platforms/react-native/guides/expo/index.mdx @@ -0,0 +1,176 @@ +--- +title: Expo +description: "Learn how to set up an Expo project with Sentry's React Native SDK, including the Sentry Expo config plugin, Expo Router tracing, and Expo Updates context." +caseStyle: camelCase +supportLevel: production +sdk: sentry.javascript.react-native +fallbackPlatform: react-native +categories: + - mobile +--- + + + +On this page, we get you up and running with Sentry's React Native SDK in an [Expo](https://expo.dev/) project. The same `@sentry/react-native` SDK powers both bare React Native and Expo apps — this guide covers the Expo-specific setup (config plugin, Metro, EAS) and integrations. + + + +If you don't already have an account and Sentry project established, head over to [sentry.io](https://sentry.io/signup/), then return to this page. + + + +## Prerequisites + +- [Expo SDK 50](https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/) or newer. + - [Expo SDK 49](https://docs.expo.dev/guides/using-sentry/) and older are supported by the `sentry-expo` package. +- [Migrate from `sentry-expo` to `@sentry/react-native`](/platforms/react-native/migration/sentry-expo/). +- [Sign up for an account](https://sentry.io/signup/). + +## Automatic Install + +Use the [Sentry Wizard](https://github.com/getsentry/sentry-wizard) to patch your project automatically, as shown below. Alternatively, you can follow the [Manual Install](#manual-install) if you prefer. You only need to patch the project once. Then, you can add the patched files to your version control system. + +```bash {tabTitle:npm} +npx @sentry/wizard@latest -i reactNative +``` + + + +- Install the `@sentry/react-native` package. +- Add the `@sentry/react-native/metro` to the _*metro.config.js*_ Metro configuration. +- Add the `@sentry/react-native/expo` to the _*app.json*_ Expo configuration. +- Enable the Sentry React Native Gradle build step for Android to auto-upload generated source maps and debug symbols. +- Wrap the _Bundle React Native code and images_ Xcode project build phase script to upload generated source maps and collect bundled node modules. +- Add _Upload Debug Symbols to Sentry_ Xcode project build phase. +- Run `pod install`. +- Store build credentials in _*ios/sentry.properties*_, _*android/sentry.properties*_ and _*.env.local*_. +- Configure Sentry for the supplied DSN in your _*layout.tsx*_ file. + + + +## Manual Install + +If you don't use the Wizard, install the `@sentry/react-native` package: + +```bash {tabTitle:Expo} +npx expo install @sentry/react-native +``` + +```bash {tabTitle:npm} +npm install @sentry/react-native --save +``` + +```bash {tabTitle:yarn} +yarn add @sentry/react-native +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/react-native +``` + +### Initialize the SDK + + + +Import the `@sentry/react-native` package and call `init` with your DSN: + +```javascript {tabTitle:App.js or app/_layout.js} +import { Stack } from "expo-router"; +import * as Sentry from "@sentry/react-native"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + // Adds more context data to events (IP address, cookies, user, etc.) + // For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/ + sendDefaultPii: true, + // ___PRODUCT_OPTION_START___ performance + // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing. + // We recommend adjusting this value in production. + // Learn more at + // https://docs.sentry.io/platforms/react-native/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ logs + // Enable logs to be sent to Sentry + // Learn more at https://docs.sentry.io/platforms/react-native/logs/ + enableLogs: true, + // ___PRODUCT_OPTION_END___ logs + // ___PRODUCT_OPTION_START___ profiling + // profilesSampleRate is relative to tracesSampleRate. + // Here, we'll capture profiles for 100% of transactions. + profilesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ profiling + // ___PRODUCT_OPTION_START___ session-replay + // Record session replays for 100% of errors and 10% of sessions + replaysOnErrorSampleRate: 1.0, + replaysSessionSampleRate: 0.1, + integrations: [Sentry.mobileReplayIntegration()], + // ___PRODUCT_OPTION_END___ session-replay +}); + +function RootLayout() { + return ; +} + +export default Sentry.wrap(RootLayout); +``` + +### Wrap Your App + +Wrap the root component of your application with `Sentry.wrap`: + +```javascript {tabTitle:App.js or app/_layout.js} +export default Sentry.wrap(RootLayout); +``` + +### Add the Sentry Expo Plugin + +To ensure bundles and source maps are automatically uploaded during the native applications builds, add `withSentry` to the Expo application configuration: + + + +### Add Sentry Metro Plugin + +To ensure unique Debug IDs get assigned to the generated bundles and source maps, add Sentry Serializer to the Metro configuration: + + + +### Add Privacy Manifest + +The SDK needs access to certain information about the device and the application for its essential functionality. Some of the APIs required for this are considered privacy-relevant. Add the privacy manifest to your Xcode project to ensure your app is compliant with Apple's guidelines. Read the [Apple Privacy Manifest](/platforms/react-native/data-management/apple-privacy-manifest/) guide for more info on how to add records required for the Sentry SDKs. + +## Verify Setup + +To verify that everything is working as expected, build the `Release` version of your application and send a test event to Sentry by adding: + +```javascript +