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