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 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