From e0b2e13b12e2cac3e6806beb4600ac1fd7dc833b Mon Sep 17 00:00:00 2001 From: Krystof Woldrich <31292499+krystofwoldrich@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:20:47 +0200 Subject: [PATCH 1/2] fix: getSentryExpoConfig should receive __driname not config --- docs/platforms/react-native/integrations/component-names.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/react-native/integrations/component-names.mdx b/docs/platforms/react-native/integrations/component-names.mdx index 3979e0dde935c..1a8d229607e75 100644 --- a/docs/platforms/react-native/integrations/component-names.mdx +++ b/docs/platforms/react-native/integrations/component-names.mdx @@ -43,7 +43,7 @@ module.exports = withSentryConfig(config, { annotateReactComponents: true }); const { getSentryExpoConfig } = require("@sentry/react-native/metro"); // const config = getDefaultConfig(__dirname); -const config = getSentryExpoConfig(config, { annotateReactComponents: true }); +const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true }); ``` ## How It Works From 816884c23b852d46d52f5f63e47859f537657ade Mon Sep 17 00:00:00 2001 From: Krystof Woldrich <31292499+krystofwoldrich@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:38:38 +0200 Subject: [PATCH 2/2] Update metro.mdx --- docs/platforms/react-native/manual-setup/metro.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/react-native/manual-setup/metro.mdx b/docs/platforms/react-native/manual-setup/metro.mdx index 1576b54347bb7..88298e056733f 100644 --- a/docs/platforms/react-native/manual-setup/metro.mdx +++ b/docs/platforms/react-native/manual-setup/metro.mdx @@ -34,7 +34,7 @@ module.exports = withSentryConfig(config); const { getSentryExpoConfig } = require("@sentry/react-native/metro"); // const config = getDefaultConfig(__dirname); -const config = getSentryExpoConfig(config, {}); +const config = getSentryExpoConfig(__dirname); ``` ### Wrap Your Custom Serializer