-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(React Native) Add react native V7 migration #13025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c15f684
add react native v7 migration
lucas-zimerman 977aff6
Update docs/platforms/react-native/migration/v6-to-v7.mdx
lucas-zimerman 3c45896
Update docs/platforms/react-native/migration/v6-to-v7.mdx
lucas-zimerman 97c8794
Merge remote-tracking branch 'origin/master' into lz/rn7-migration
krystofwoldrich 51aca71
merge
lucas-zimerman a6f84cf
remove package manager
lucas-zimerman 58d334d
extra space
lucas-zimerman 4770428
fix missing new line package.json
krystofwoldrich 94e1d36
fix diff style
krystofwoldrich 4278fd4
Merge remote-tracking branch 'origin/master' into lz/rn7-migration
krystofwoldrich f960918
add more changes to the v7 migration guide
krystofwoldrich 6afe1c4
add expo go module detection note
krystofwoldrich da3f9e7
Apply suggestions from code review
lucas-zimerman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| title: Migrate from 6.x to 7.x | ||
| sidebar_order: 99 | ||
| draft: true | ||
|
|
||
| description: "Learn how to migrate from version 6 to version 7 of the Sentry React Native SDK" | ||
| --- | ||
|
|
||
| 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. | ||
|
|
||
| ## Important Changes In Dependencies | ||
lucas-zimerman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The Sentry React Native SDK ships with the Sentry JavaScript SDK as a dependency. The Sentry JavaScript SDK has been updated to version 9. This version includes 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 JavaScript migration guides](/platforms/javascript/guides/react/migration/v8-to-v9/) to complete the upgrade. | ||
lucas-zimerman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The initial `@sentry/react-native@7.0.0` ships with `@sentry/core@9.1.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. | ||
|
|
||
lucas-zimerman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ### General API Changes | ||
|
|
||
| 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/). | ||
|
|
||
| ## Important React Native SDK `7.x` Changes | ||
|
|
||
| This section describes API changes in the Sentry React Native SDK, version 7. | ||
|
|
||
| ### React Native Tracing Options Moved to `Sentry.init` Options | ||
|
|
||
| TODO | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.