Skip to content

Commit 1146223

Browse files
authored
added example code to React Native for setDist (#1670)
Customer wrote into Support about confusion over setDist. This PR gives a code example of how to use setDist.
1 parent 73df178 commit 1146223

File tree

1 file changed

+4
-0
lines changed
  • src/collections/_documentation/platforms/react-native

1 file changed

+4
-0
lines changed

src/collections/_documentation/platforms/react-native/sourcemaps.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ Sentry.setRelease(RELEASE_NAME)
4444
`DISTRIBUTION_NAME`:
4545

4646
: This is the version code or build ID depending on your platform. So for instance just set this to whatever is set in your _Info.plist_ or what your Gradle setup generates (For example, `52`).
47+
48+
```js
49+
Sentry.setDist(DISTRIBUTION_NAME);
50+
```

0 commit comments

Comments
 (0)