Skip to content

Commit 51aca71

Browse files
merge
1 parent 97c8794 commit 51aca71

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

docs/platforms/react-native/migration/v6-to-v7.mdx

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
22
title: Migrate from 6.x to 7.x
33
sidebar_order: 99
4-
draft: true
5-
64
description: "Learn how to migrate from version 6 to version 7 of the Sentry React Native SDK"
75
---
86

7+
<Alert level="warning" title="Important">
8+
Version 7 is still under development, the documentation may change before the final release.
9+
</Alert>
10+
911
The main goal of version 7 of the Sentry React Native SDK, is to bring compatibility with Sentry JavaScript version 9. This version is introducing breaking changes because of the JavaScript SDK dependency upgrade to version 9 and because we've removed deprecated APIs and restructured npm package contents.
1012

1113
## Important Changes In Dependencies
@@ -19,10 +21,29 @@ Version 7 also includes a major upgrade to the Android SDK dependency, introduci
1921

2022
Other general JavaScript SDK version 9 changes are described in the [JavaScript SDK 8.x to 9.x migration guide](/platforms/javascript/guides/react/migration/v8-to-v9/).
2123

24+
### Self-Hosted Sentry Compatibility
25+
26+
Beginning with version 7.0.0, the Sentry Capacitor SDK will only support self-hosted Sentry instances version 25.2.0 and above. This change does not affect users of `sentry.io`.
27+
2228
## Important React Native SDK `7.x` Changes
2329

24-
This section describes API changes in the Sentry React Native SDK, version 7.
30+
This section describes API changes in the Sentry React7 Native SDK, version 7.
31+
32+
### captureUserFeedback is now removed
33+
34+
You can use the updated snippet in order to capture user Feedbacks:
35+
36+
```diff
37+
- import { captureUserFeedback } from '@sentry/react-native';
38+
+ import { captureFeedback } from '@sentry/react-native';
2539

26-
### React Native Tracing Options Moved to `Sentry.init` Options
40+
- captureUserFeedback({
41+
+ captureFeedback({
42+
name: 'my name',
43+
44+
message: 'it broke',
45+
associatedEventId: 'eventID'
46+
});
47+
```
2748

28-
TODO
49+
Additionally you can also see our new Feedback integration by checking the following [link](../../user-feedback/configuration/)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,6 @@
136136
"volta": {
137137
"node": "20.11.0",
138138
"yarn": "1.22.22"
139-
}
139+
},
140+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
140141
}

0 commit comments

Comments
 (0)