Skip to content

Commit 98a3760

Browse files
fix: getSentryExpoConfig should receive __driname not config (#11480)
1 parent 6355dae commit 98a3760

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/platforms/react-native/integrations/component-names.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = withSentryConfig(config, { annotateReactComponents: true });
4343
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
4444

4545
// const config = getDefaultConfig(__dirname);
46-
const config = getSentryExpoConfig(config, { annotateReactComponents: true });
46+
const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true });
4747
```
4848

4949
## How It Works

docs/platforms/react-native/manual-setup/metro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = withSentryConfig(config);
3434
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
3535

3636
// const config = getDefaultConfig(__dirname);
37-
const config = getSentryExpoConfig(config, {});
37+
const config = getSentryExpoConfig(__dirname);
3838
```
3939

4040
### Wrap Your Custom Serializer

0 commit comments

Comments
 (0)