---
title: "Migrate from 6.x to 7.x"
description: "Learn how to migrate from version 6 to version 7 of the Sentry React Native SDK"
url: https://docs.sentry.io/platforms/react-native/migration/v6-to-v7/
---

# Migrate from 6.x to 7.x | Sentry for React Native

The main goal of version 7 of the Sentry React Native SDK is to provide compatibility with Sentry JavaScript versions 9 and 10. This update includes breaking changes due to the upgrade to JavaScript SDK v10, the removal of deprecated APIs, and a reorganization of the npm package structure.

## [Important Changes in Dependencies](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#important-changes-in-dependencies)

The Sentry React Native SDK ships with the Sentry JavaScript SDK Version 10 as a dependency. This version includes two major updates (Sentry JavaScript v9 and v10), a number of behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling. Please follow the [V9 migration](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#major-changes-in-sentry-js-sdk-v9) and [V10 migration](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#major-changes-in-sentry-js-sdk-v10) to complete the upgrade.

The initial release `@sentry/react-native@7.0.0` ships with `@sentry/core@10.8.0`. 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.

Version 7 also includes a major upgrade to the Android SDK dependency, introducing behavioral changes, breaking changes, and deprecations. If you are using the Android SDK directly, please follow the [Android SDK version 8 migration guide](https://docs.sentry.io/platforms/android/migration.md#migrating-from-iosentrysentry-7x-to-iosentrysentry-800).

### [Major Changes in Sentry JS SDK v9](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#major-changes-in-sentry-js-sdk-v9)

This upgrade includes many behavioral and API changes which are mostly related to Spans instrumentation and removal of APIs. For these and other general JavaScript SDK version 9 changes, refer to the [JavaScript SDK 8.x to 9.x migration guide](https://docs.sentry.io/platforms/javascript/guides/react/migration/v8-to-v9.md).

### [Major Changes in Sentry JS SDK v10](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#major-changes-in-sentry-js-sdk-v10)

This update contains a fix for indicating whether the backend should derive and store user IP addresses. It also includes API cleanups related to `BaseClient`, `hasTracingEnabled`, and `logger` from `@sentry/core`. For details and other general JavaScript SDK version 10 changes, refer to the [JavaScript SDK 9.x to 10.x migration guide](https://docs.sentry.io/platforms/javascript/guides/react/migration/v9-to-v10.md).

### [Self-Hosted Sentry Compatibility](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#self-hosted-sentry-compatibility)

Beginning with version 7.0.0, the Sentry React Native SDK will only support self-hosted Sentry instances version 25.2.0 and above.

## [Important React Native SDK `7.x` Changes](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#important-react-native-sdk-7x-changes)

This section describes API changes in the Sentry React Native SDK, version 7.

### [`captureUserFeedback` is now removed](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#captureuserfeedback-is-now-removed)

You can use the updated snippet in order to capture user Feedback:

```javascript
+ import { captureFeedback } from '@sentry/react-native';
- import { captureUserFeedback } from '@sentry/react-native';

+ captureUserFeedback({
- captureFeedback({
    name: 'my name',
    email: 'myemail@sentry.io',
    message: 'it broke',
    associatedEventId: 'eventID',
  });
```

Additionally you can also see our new Feedback integration by checking the [User Feedback Configuration guide](https://docs.sentry.io/platforms/react-native/user-feedback/configuration.md)

### [`autoSessionTracking` united with `enableAutoSessionTracking`](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#autosessiontracking-united-with-enableautosessiontracking)

Option key `autoSessionTracking` was removed. Use `enableAutoSessionTracking` instead, enabled by default.

```javascript
Sentry.init({
+  enableAutoSessionTracking: true,
-  autoSessionTracking: true,
});
```

### [`browserReplayIntegration` can be used directly without the `isWeb` check](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#browserreplayintegration-can-be-used-directly-without-the-isweb-check)

The check is now done inside of the integration, simplifying workflows.

```javascript
Sentry.init({
+  integrations: [ Sentry.browserReplayIntegration() ],
-  integrations: (defaultIntegrations) => {
-    if (Platform.OS === 'web') {
-      defaultIntegrations.push(Sentry.browserReplayIntegration());
-    }
-    return defaultIntegrations;
-  },
});
```

### [`Cold/Warm App Start` spans were renamed to `Cold/Warm Start`](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#coldwarm-app-start-spans-were-renamed-to-coldwarm-start)

The `App` word was removed from the span description. If you have any logic in your application or in Sentry based on this span description, please, make sure to update.

### [Detection of Expo Go uses `ExpoGo` module](https://docs.sentry.io/platforms/react-native/migration/v6-to-v7.md#detection-of-expo-go-uses-expogo-module)

Starting with version 7.0.0, the Sentry React Native SDK will use the `ExpoGo` module to detect if the application is running on Expo Go. This differs from the previous behavior, where the SDK would check for the deprecated `appOwnership` property. This new approach doesn't work for Expo SDK 49 and older. The minimum supported Expo SDK version is 50, same as in Sentry React Native SDK v6.
