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/sentry-expo.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,22 +46,22 @@ pnpm add @sentry/react-native
46
46
47
47
Replace all imports of `sentry-expo` with `@sentry/react-native`:
48
48
49
-
```diff {tabTitle:JavaScript}
49
+
```javascript {tabTitle:JavaScript} diff
50
50
-import*asSentryfrom'sentry-expo';
51
51
+import*asSentryfrom'@sentry/react-native';
52
52
```
53
53
54
54
Replace `sentry-expo` exports `Browser` and `React` with `@sentry/react`:
55
55
56
-
```diff {tabTitle:JavaScript}
56
+
```javascript {tabTitle:JavaScript} diff
57
57
-import { Browser, React } from'sentry-expo';
58
58
+import*asBrowserfrom'@sentry/react';
59
59
+import*asReactfrom'@sentry/react';
60
60
```
61
61
62
62
Replace `sentry-expo` export `Native` with `@sentry/react-native`:
63
63
64
-
```diff {tabTitle:JavaScript}
64
+
```javascript {tabTitle:JavaScript} diff
65
65
-import { Native } from'sentry-expo';
66
66
+import*asSentryfrom'@sentry/react-native';
67
67
```
@@ -70,7 +70,7 @@ Replace `sentry-expo` export `Native` with `@sentry/react-native`:
70
70
71
71
The `enableInExpoDevelopment` option is no longer supported. If you were using it, remove it and replace it with a `__DEV__` check, or leave the SDK enabled in development.
0 commit comments