Skip to content

Commit 72d2507

Browse files
krystofwoldrichantonislucas-zimerman
authored
Apply suggestions from code review
Co-authored-by: Antonis Lilis <[email protected]> Co-authored-by: LucasZF <[email protected]>
1 parent 6f4bd7e commit 72d2507

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ sidebar_order: 100
44
description: "Learn how to migrate from version 5 to version 6 of the Sentry React Native SDK"
55
---
66

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.
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 introducing breaking changes because of the JavaScript SDK dependency upgrade to version 8 and because we've removed deprecated APIs and restructured npm package contents.
88

99
## Important Changes In Dependencies
1010

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.
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](/platforms/javascript/migration/) to complete the upgrade.
1212

1313
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.
1414

@@ -55,7 +55,7 @@ import Sentry from '@sentry/react-native';
5555
import { useNavigationContainerRef } from 'expo-router';
5656

5757
- const reactNavigationIntegration = new Sentry.ReactNavigationInstrumentation();
58-
+ const reactNavigationIntegration = new Sentry.reactNavigationIntegration();
58+
+ const reactNavigationIntegration = Sentry.reactNavigationIntegration();
5959

6060
Sentry.init({
6161
tracesSampleRate: 1.0,
@@ -71,7 +71,7 @@ import Sentry from '@sentry/react-native';
7171
import { NavigationContainer } from '@react-navigation/native';
7272

7373
- const reactNavigationIntegration = new Sentry.ReactNavigationInstrumentation();
74-
+ const reactNavigationIntegration = new Sentry.reactNavigationIntegration();
74+
+ const reactNavigationIntegration = Sentry.reactNavigationIntegration();
7575

7676
Sentry.init({
7777
tracesSampleRate: 1.0,

0 commit comments

Comments
 (0)