Skip to content

Commit 029b520

Browse files
EnableInExpoDevelopment looks like it disable sentry on non dev envs (#14087)
## DESCRIBE YOUR PR EnableInExpoDevelopment looks like it disable sentry on non dev envs. `__DEV__` is under prod = false which would mean Sentry = disabled or? ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 8582858 commit 029b520

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/platforms/react-native/migration/sentry-expo.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,17 @@ Replace `sentry-expo` export `Native` with `@sentry/react-native`:
7474

7575
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.
7676

77-
```javascript {tabTitle:JavaScript} diff
77+
```javascript {tabTitle:Disabled in development} diff
78+
Sentry.init({
79+
- enableInExpoDevelopment: false,
80+
+ enabled: !__DEV__,
81+
});
82+
```
83+
84+
```javascript {tabTitle:Enabled in development} diff
7885
Sentry.init({
7986
- enableInExpoDevelopment: true,
80-
+ enabled: __DEV__,
87+
+ enabled: true,
8188
});
8289
```
8390

0 commit comments

Comments
 (0)