Skip to content

Commit 5ca2230

Browse files
add changelog
1 parent b3241a8 commit 5ca2230

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
- Improve touch event component info if annotated with [`@sentry/babel-plugin-component-annotate`](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate) ([#3899](https://github.com/getsentry/sentry-react-native/pull/3899))
88
- Add replay breadcrumbs for touch & navigation events ([#3846](https://github.com/getsentry/sentry-react-native/pull/3846))
99
- Add network data to Session Replays ([#3912](https://github.com/getsentry/sentry-react-native/pull/3912))
10+
- Add `annotateReactComponents` option to `@sentry/react-native/metro` ([#3916](https://github.com/getsentry/sentry-react-native/pull/3916))
11+
12+
```js
13+
// For Expo
14+
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
15+
const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true });
16+
17+
// For RN
18+
const { getDefaultConfig } = require('@react-native/metro-config');
19+
const { withSentryConfig } = require('@sentry/react-native/metro');
20+
module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
21+
```
1022

1123
### Dependencies
1224

@@ -473,7 +485,7 @@ see [the Expo guide](https://docs.sentry.io/platforms/react-native/manual-setup/
473485
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
474486

475487
// const config = getDefaultConfig(__dirname);
476-
const config = getSentryExpoConfig(config, {});
488+
const config = getSentryExpoConfig(__dirname);
477489
```
478490

479491
- New `npx sentry-expo-upload-sourcemaps` for simple EAS Update (`npx expo export`) source maps upload ([#3491](https://github.com/getsentry/sentry-react-native/pull/3491), [#3510](https://github.com/getsentry/sentry-react-native/pull/3510), [#3515](https://github.com/getsentry/sentry-react-native/pull/3515), [#3507](https://github.com/getsentry/sentry-react-native/pull/3507))

0 commit comments

Comments
 (0)