diff --git a/docs/platforms/react-native/session-replay/performance-overhead.mdx b/docs/platforms/react-native/session-replay/performance-overhead.mdx index 477ca0b51dd1a4..371ff3f2eff2a9 100644 --- a/docs/platforms/react-native/session-replay/performance-overhead.mdx +++ b/docs/platforms/react-native/session-replay/performance-overhead.mdx @@ -59,4 +59,17 @@ To minimize the performance impact of the Replay SDK on iOS and Android, conside }); ``` -Note that the default value for `replaysSessionQuality` is `medium` and a `high` quality setting is also available. \ No newline at end of file +Note that the default value for `replaysSessionQuality` is `medium` and a `high` quality setting is also available. + +## Excluding Session Replay from Android + +If you don’t plan to use Session Replay, you can exclude the sentry-android-replay module from your Android targets to reduce the bundle size by about 40KB compressed and 80KB uncompressed. Here's how you can do it: + +```gradle +// from the android's root build.gradle file +subprojects { + configurations.all { + exclude group: 'io.sentry', module: 'sentry-android-replay' + } +} +``` \ No newline at end of file