:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(docs): document react native replay screenshot settings (#98787)
Dustin Byrne7a1efeda9825
diff --git a/docs/onboarding/session-replay/react-native.tsx b/docs/onboarding/session-replay/react-native.tsxindex ea78c8bf1d61..c4b01acb3cab 100644--- a/docs/onboarding/session-replay/react-native.tsx+++ b/docs/onboarding/session-replay/react-native.tsx@@ -110,6 +110,22 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin// Whether images are masked. Default is true.maskAllImages: true,+ // Experimental screenshot settings (Android only, requires @posthog/react-native-plugin).+ // We recommend these values to balance performance and image quality.+ // Lower resolution and RGB_565 reduce capture time and memory use.++ // Scale each screenshot dimension from 0.1 to 1.0. Default is 1.0.+ // A scale of 0.5 captures one quarter of the pixels, with less image detail.+ screenshotScale: 0.5,++ // RGB_565 uses two bytes per pixel instead of four, with lower color precision+ // and no transparency. Transparent window regions appear black. Default is ARGB_8888.+ screenshotColorMode: "RGB_565",++ // WebP compression quality from 0 to 100. Default is 30.+ // Lower quality reduces payload size at the cost of image detail.+ screenshotCompressionQuality: 30,+// Capture logs automatically. Default is true.// Android only (Native Logcat only)//