diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/session-replay/index.mdx index a83ef0d22af5f2..2537efac864275 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 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. + + + +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. + + + +```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.