Skip to content
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

Add RN Screenshots #5832

Merged
merged 3 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

```javascript
import * as Sentry from "@sentry/react-native";

Sentry.init({
dsn: "___PUBLIC_DSN___",
attachScreenshot: true,
});
```
7 changes: 7 additions & 0 deletions src/platforms/common/enriching-events/screenshots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ supported:
- dotnet.xamarin
- javascript.electron
- flutter
- react-native
notSupported:
- apple.macos
- apple.tvos
Expand All @@ -25,6 +26,12 @@ Screenshots may contain <PlatformLink to="/data-management/sensitive-data/">PII<

<PlatformContent includePath="enriching-events/attach-screenshots" />

<PlatformSection supported={["react-native"]}>

When `attachScreenshot` is enabled and an error event is captured, the screenshots are transferred from native SDKs to React Native over the bridge. This can negatively impact performance on lower-end devices, however, React Native New Architecture will improve the performance of the transfer, as the data are not serialized.

</PlatformSection>

## Viewing Screenshots

A thumbnail of the screenshot shows up at the top of the **Issue Details** page:
Expand Down