From ff7c47063699c8e3a805e312392811fca7104ab2 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Fri, 15 May 2026 13:45:47 +0200 Subject: [PATCH] docs(react-native): Restore includeWebFeedback Metro config option The SDK fix for the includeWebFeedback crash has landed in https://github.com/getsentry/sentry-react-native/pull/6150, so re-add the option to the docs. Reverts the removal from https://github.com/getsentry/sentry-docs/pull/17774 Co-Authored-By: Claude Opus 4.6 --- docs/platforms/react-native/manual-setup/metro.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/platforms/react-native/manual-setup/metro.mdx b/docs/platforms/react-native/manual-setup/metro.mdx index fca0982cdb783..912ccf7ba7b92 100644 --- a/docs/platforms/react-native/manual-setup/metro.mdx +++ b/docs/platforms/react-native/manual-setup/metro.mdx @@ -74,11 +74,12 @@ const config = getSentryExpoConfig(__dirname, { ### Reduce Bundle Size -If you're not targeting React Native for Web, you can exclude web-only packages like Session Replay from the bundle by opting out via the Metro Plugin options. When set to `false`, the Sentry Metro Plugin resolves the matching Sentry sub-packages to an empty module so they're not included in the output bundle. +If you're not targeting React Native for Web, you can exclude web-only packages like Session Replay and User Feedback from the bundle by opting out via the Metro Plugin options. When set to `false`, the Sentry Metro Plugin resolves the matching Sentry sub-packages to an empty module so they're not included in the output bundle. | Option | Default | Effect when set to `false` | | --------------------- | ------- | ------------------------------------------------------------------------ | | `includeWebReplay` | `true` | Excludes `@sentry/replay` and `@sentry-internal/replay` from the bundle. | +| `includeWebFeedback` | `true` | Excludes `@sentry-internal/feedback` from the bundle. | Note that these options only affect bundling. They do not disable the corresponding native (Android/iOS) integrations. @@ -89,6 +90,7 @@ const { withSentryConfig } = require("@sentry/react-native/metro"); const config = getDefaultConfig(__dirname); module.exports = withSentryConfig(config, { includeWebReplay: false, + includeWebFeedback: false, }); ``` @@ -97,6 +99,7 @@ const { getSentryExpoConfig } = require("@sentry/react-native/metro"); const config = getSentryExpoConfig(__dirname, { includeWebReplay: false, + includeWebFeedback: false, }); ```