You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(replay): Expose captureSurfaceViews option for Android Session Replay #6107
The Android SDK added experimental support for capturing SurfaceView content in Session Replay in sentry-java v8.41.0 (#5333). This allows replays to include content from components that render outside the normal View hierarchy — e.g. Unity views, video players, and map SDKs — which otherwise appear as black or transparent regions.
We already depend on sentry-android:8.41.0, but the captureSurfaceViews option is not bridged to the React Native SDK.
What needs to happen
TypeScript: Add captureSurfaceViews?: boolean to MobileReplayOptions in packages/core/src/js/replay/mobilereplay.ts
Android: Read the option from rnMobileReplayOptions in RNSentryStart.java and call androidReplayOptions.setCaptureSurfaceViews()
iOS is not affected (Android-only feature)
Notes
The option is marked experimental in the Android SDK — masking granularity is at the SurfaceView level only (cannot mask individual elements inside the SurfaceView)
Only works with the PixelCopy screenshot strategy (the default)
Activity
linear-code commentedon May 7, 2026
RN-614
feat(replay): Expose captureSurfaceViews option for Android Session R…
github-actions commentedon May 21, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #6175, which was included in the 8.12.0 release.