🚧 NOTE: React Native session replay is considered
betaand is free while in beta. We are keen to gather as much feedback as possible so if you try this out please let us know. You can send feedback via the in-app support panel or one of our other support options.
Installation
Install and configure PostHog as you normally would. Ensure you've enabled session recordings in your project settings and then add enableSessionReplay: true to your PostHog configuration alongside any of your other configuration options.
Requires PostHog React Native SDK version >= 3.2.0, and it's recommended to always use the latest version.
Install the session replay plugin.
Or using the PostHogProvider:
Masking and redacting
Your replays may contain sensitive information. For example, if you're building a banking app you may not want to capture how much money a user has in their account.
To replace any type of React.Component with a redacted version in the replay, set the accessibilityLabel to ph-no-capture:
Expo
Mobile Session Replay for Expo works normally, but prefer the expo tools for installing and running your project.
Install the session replay plugin.
Expo Go isn't supported since it uses Native plugins, please use development build.
Limitations
- On Android, requires API >= 26.
- WebView is not supported. A placeholder will be shown.
- Keyboard is not supported. A placeholder will be shown.
- Wireframe mode isn't supported, only screenshot mode.
- Expo Go isn't supported since it uses Native plugins, please use development build.
Troubleshooting
- Run a clean build if you experience issues such as The package 'posthog-react-native-session-replay' doesn't seem to be linked.
- Update your iOS Pods.