You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/react-native/migration/v5-to-v6.mdx
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,32 @@
1
1
---
2
2
title: Migrate from 5.x to 6.x
3
3
sidebar_order: 100
4
-
description: "Learn about migrating from the SDK version 5 to 6"
4
+
description: "Learn how to migrate from version 5 to version 6 of the Sentry React Native SDK"
5
5
---
6
6
7
-
The main goal of Sentry React Native SDK version 6 is bring compatibility with Sentry JavaScript version 8 and to improve our performance monitoring APIs and integrations. This version is breaking because of the JavaScript SDK dependency upgrade to version 8 and becuase we removed deprecated APIs, restructured npm package contents.
7
+
The main goal of version 6 of the Sentry React Native SDK, is to bring compatibility with Sentry JavaScript version 8 and to improve our performance monitoring APIs and integrations. This version is breaking because of the JavaScript SDK dependency upgrade to version 8 and because we've removed deprecated APIs and restructured npm package contents.
8
8
9
-
## Important changes in dependencies
9
+
## Important Changes In Dependencies
10
10
11
11
The Sentry React Native SDK ships with the Sentry JavaScript SDK as a dependency. The Sentry JavaScript SDK has been updated to version 8. This version includes a number of breaking changes. Please follow the JavaScript migration guides to complete the upgrade.
12
12
13
-
The initial `@sentry/[email protected]` ships with `@sentry/[email protected]`. Always use the exact JavaScript SDK version, if adding it manually to your project, any other version might not be compatible with the React Native SDK.
13
+
The initial `@sentry/[email protected]` ships with `@sentry/[email protected]`. Always use the exact JavaScript SDK version if adding it manually to your project. Any other version might not be compatible with the React Native SDK.
14
14
15
-
### PerformanceMonitoring API changes
15
+
### Performance-Monitoring API Changes
16
16
17
-
The main focus of the Sentry JavaScript SDK version 8 is to improve our performance monitoring APIs and that's why the Tracing APIs changes are desccribed in a standalone guide. Please follow the [Tracing API changes](/platforms/javascript/migration/v7-to-v8/v8-new-performance-api/) guide to complete the upgrade.
17
+
The main focus of the Sentry JavaScript SDK version 8, is to improve our performance monitoring APIs. That's why the Tracing API changes are described in a standalone guide. Please follow the [Tracing API changes](/platforms/javascript/migration/v7-to-v8/v8-new-performance-api/) guide to complete the upgrade.
18
18
19
-
### General API changes
19
+
### General API Changes
20
20
21
21
Other general JavaScript SDK version 8 changes are described in the [JavaScript SDK 7.x to 8.x migration guide](/platforms/javascript/migration/v7-to-v8/).
22
22
23
-
## Important React Native SDK `6.x`changes
23
+
## Important React Native SDK `6.x`Changes
24
24
25
-
This section describes the APIs changes in the Sentry React Native SDK version 6.
25
+
This section describes API changes in the Sentry React Native SDK, version 6.
26
26
27
-
### React Native Tracing options moved to `Sentry.init`options
27
+
### React Native Tracing Options Moved to `Sentry.init`Options
28
28
29
-
To change the follwoing options, you no longer need to create instance of React Native Tracing. Instead, you can pass them directly to `Sentry.init` options.
29
+
To change the following options, you no longer need to create an instance of React Native Tracing. Instead, you can pass them directly to `Sentry.init` options.
30
30
31
31
```javascript diff
32
32
import*asSentryfrom'@sentry/react-native';
@@ -46,9 +46,9 @@ Sentry.init({
46
46
});
47
47
```
48
48
49
-
### Navigation Instrumentations are now standalone integrations
49
+
### Navigation Instrumentations Are Now Standalone Integrations
50
50
51
-
The Navigation Instrumentations are now a standalone integrations and you need to add it to the `integrations` array in the `Sentry.init` options.
51
+
Navigation Instrumentations are now standalone integrations. You'll need to add it to the `integrations` array in the `Sentry.init` options.
52
52
53
53
```javascript {tabTitle:Expo Router} diff
54
54
importSentryfrom'@sentry/react-native';
@@ -101,13 +101,13 @@ Sentry.init({
101
101
});
102
102
```
103
103
104
-
### React Navigation version 4 is not supported
104
+
### React Navigation Version 4 Is Not Supported
105
105
106
-
`ReactNavigationV4Instrumentation` was removed in the SDK version 6. If you are using React Navigation version 4, you need to upgrade to version 5 or never.
106
+
`ReactNavigationV4Instrumentation` was removed in version 6 of the SDK. If you're using React Navigation version 4, you'll need to upgrade to version 5 or newer.
107
107
108
-
### RoutingInstrumentation for Custom Navigation was removed
108
+
### RoutingInstrumentation for Custom Navigation Was Removed
109
109
110
-
`RoutingInstrumentation` was removed in the SDK version 6. If you are using custom navigation, use `startIdleNavigationSpan`fucntion.
110
+
`RoutingInstrumentation` was removed in version 6 of the SDK. If you're using custom navigation, use the `startIdleNavigationSpan`function.
The `beforeNavigate` option was removed in the SDK version 6. Use the `beforeStartSpan` option instead. The `beforeStartSpan` option is a function that is called before starting a navigation span. This function can't stop the span from being started, but it can modify the span start options before it starts.
181
+
The `beforeNavigate` option was removed in version 6 of the SDK . Use the `beforeStartSpan` option instead. The `beforeStartSpan` option is a function that's called before starting a navigation span. This function can't stop the span from being started, but it can modify the span start options before it starts.
182
182
183
183
```javascript diff
184
184
Sentry.init({
@@ -198,9 +198,9 @@ Sentry.init({
198
198
});
199
199
```
200
200
201
-
### `enableSpotlight` and `spotlightSidecarUrl`replaced by `spotlight`
201
+
### `enableSpotlight` and `spotlightSidecarUrl`Replaced by `spotlight`
202
202
203
-
The `enableSpotlight` and `spotlightSidecarUrl` options were removed in the SDK version 6. Use the `spotlight` option instead.
203
+
The `enableSpotlight` and `spotlightSidecarUrl` options were removed in version 6 of the SDK. Use the `spotlight` option instead.
204
204
205
205
```javascript diff
206
206
import*asSentryfrom'@sentry/react-native';
@@ -213,9 +213,9 @@ Sentry.init({
213
213
});
214
214
```
215
215
216
-
### React Native Tracing `idleTimeout` and `maxTransactionDuration`options were removed
216
+
### React Native Tracing `idleTimeout` and `maxTransactionDuration`Options Were Removed
217
217
218
-
The `idleTimeout` and `maxTransactionDuration` options were removed in the SDK version 6. Use the `idleTimeoutMs` and `finalTimeoutMs` options from the JavaScript SDK instead.
218
+
The `idleTimeout` and `maxTransactionDuration` options were removed in version 6 of the SDK. Use the `idleTimeoutMs` and `finalTimeoutMs` options from the JavaScript SDK instead.
0 commit comments