-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: React native session replay includes View
and WebView
when ph-no-capture
is set
#292
Comments
@milomord any more context here? |
Sure, I can provide a simplified example. I am able to reproduce with this snippet for instance in our Expo application: import { View, Text } from 'react-native'
function Homepage() {
return (
<View style={{ flex: 1 }}>
<Text style={{ fontSize: 32 }}>Example text</Text>
<View style={{ flex: 1, gap: 16 }} accessibilityLabel="ph-no-capture">
<Text>Some</Text>
<Text>Sensitive</Text>
<Text>Content</Text>
</View>
</View>
)
}
export default HomePage I just confirmed that when I render this component, all views are present in the screen recording. In case it is helpful, our current version of |
@milomord I managed to reproduce this on iOS. @milomord for WebView, are you using https://www.npmjs.com/package/react-native-webview? can you share a code snippet? |
@milomord I think PostHog/posthog-ios#230 should solve that |
once the v3.14.1 is published, you can upgrade your Pods and test it, thanks. |
Bug Description
Bug description
We recently enabled the react-native session replay feature, which seems really great as is! However, we would like to set
ph-no-capture
on aWebView
, or its surroundingView
. For us it seems likeaccessibilityLabel="ph-no-capture"
works for theText
component, but notView
orWebView
. Is it possible right now to redact an entireView
component?How to reproduce
accessibilityLabel="ph-no-capture"
toView
component somewhere in react native appView
is visible in uploaded recording on posthog dashboardAdditional context
This is observed for us on iOS, I have not yet tested if it works for Android as that's not important for our use case right this moment.
Debug info
The text was updated successfully, but these errors were encountered: