From 2a46e67cea195722691f1d2c5ac28842c1c6171d Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Mon, 18 May 2026 14:23:40 +0200 Subject: [PATCH 1/3] Add captureSurfaceViews option to React Native Session Replay docs Documents the new captureSurfaceViews option bridged from the Android SDK, which allows replays to capture content from SurfaceView components. Co-Authored-By: Claude Opus 4.6 --- .../react-native/session-replay/index.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/session-replay/index.mdx index a83ef0d22af5f..efa07ce066897 100644 --- a/docs/platforms/react-native/session-replay/index.mdx +++ b/docs/platforms/react-native/session-replay/index.mdx @@ -204,6 +204,24 @@ integrations: [ ] ``` +## SurfaceView Capture (Android) + +By default, content rendered inside `SurfaceView` components (e.g. video players, map SDKs) appears as black or transparent regions in Session Replay. You can enable `captureSurfaceViews` to include this content in recordings. + + + +This option is **experimental**. Masking granularity is at the `SurfaceView` level only — individual elements inside a `SurfaceView` cannot be masked separately. Only works with the `pixelCopy` screenshot strategy (the default). + + + +```javascript {tabTitle:Mobile} +integrations: [ + Sentry.mobileReplayIntegration({ + captureSurfaceViews: true, + }), +] +``` + ## React Component Names Sentry helps you capture your React components and unlock additional insights in your application. You can set it up to use React component names. From 9a2dcc212baf8175210664815028b74861b2a3e9 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Mon, 18 May 2026 14:24:40 +0200 Subject: [PATCH 2/3] Add link to Android SurfaceView Capture docs Co-Authored-By: Claude Opus 4.6 --- docs/platforms/react-native/session-replay/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/session-replay/index.mdx index efa07ce066897..1d2a8a5b03b2b 100644 --- a/docs/platforms/react-native/session-replay/index.mdx +++ b/docs/platforms/react-native/session-replay/index.mdx @@ -210,7 +210,7 @@ By default, content rendered inside `SurfaceView` components (e.g. video players -This option is **experimental**. Masking granularity is at the `SurfaceView` level only — individual elements inside a `SurfaceView` cannot be masked separately. Only works with the `pixelCopy` screenshot strategy (the default). +This option is **experimental**. Masking granularity is at the `SurfaceView` level only — individual elements inside a `SurfaceView` cannot be masked separately. Only works with the `pixelCopy` screenshot strategy (the default). See the [Android SurfaceView Capture docs](/platforms/android/session-replay/#surfaceview-capture) for more details. From cee06913d3c55b07f2a8daee61d2020a5db12db8 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 19 May 2026 08:50:06 +0200 Subject: [PATCH 3/3] Update header section for consistency Co-authored-by: Roman Zavarnitsyn --- docs/platforms/react-native/session-replay/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/session-replay/index.mdx index 1d2a8a5b03b2b..2537efac86427 100644 --- a/docs/platforms/react-native/session-replay/index.mdx +++ b/docs/platforms/react-native/session-replay/index.mdx @@ -204,7 +204,7 @@ integrations: [ ] ``` -## SurfaceView Capture (Android) +## SurfaceView Capture (Android only) By default, content rendered inside `SurfaceView` components (e.g. video players, map SDKs) appears as black or transparent regions in Session Replay. You can enable `captureSurfaceViews` to include this content in recordings.