diff --git a/src/platform-includes/enriching-events/attach-screenshots/react-native.mdx b/src/platform-includes/enriching-events/attach-screenshots/react-native.mdx new file mode 100644 index 0000000000000..df3c5b164f3ea --- /dev/null +++ b/src/platform-includes/enriching-events/attach-screenshots/react-native.mdx @@ -0,0 +1,9 @@ + +```javascript +import * as Sentry from "@sentry/react-native"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + attachScreenshot: true, +}); +``` diff --git a/src/platforms/common/enriching-events/screenshots.mdx b/src/platforms/common/enriching-events/screenshots.mdx index 56ba48fd0b49a..289b6ce83e02b 100644 --- a/src/platforms/common/enriching-events/screenshots.mdx +++ b/src/platforms/common/enriching-events/screenshots.mdx @@ -9,6 +9,7 @@ supported: - dotnet.xamarin - javascript.electron - flutter + - react-native notSupported: - apple.macos - apple.tvos @@ -25,6 +26,12 @@ Screenshots may contain PII< + + +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. + + + ## Viewing Screenshots A thumbnail of the screenshot shows up at the top of the **Issue Details** page: