Repository navigation
1.3.0
·
20 commits
to develop
since this release
Immutable
release. Only release title and notes can be modified.
@splunk/otel-react-native
- Version bump in sync with
@splunk/otel-session-replay-react-native.
@splunk/otel-session-replay-react-native
Added
SensitiveViewcomponent, which masks everything rendered inside it in session replay recordings. Note that masking and un-masking are not symmetric:sensitive={true}covers the whole subtree, whilesensitive={false}applies to that view alone — sensitivity is resolved per view and never consults an ancestor. To exempt an element from a class-level rule, usesetViewSensitivitywith that element's own ref; to carve a region out of a masked area, use an erasing recording mask.- Per-view and per-class sensitivity on
SplunkSessionReplay.instance:setViewSensitivity,clearViewSensitivity,setClassSensitivity,clearClassSensitivity,getClassSensitivity. maskAllText,maskAllImagesandmaskWebViewsconvenience helpers. Neither native SDK has a global masking switch, so these are built on the per-class API.NativeViewClassconstants mapping React Native primitives onto the native view classes the SDK defaults key off, so class rules work on both platforms without hardcoding names. Each entry lists the classes for both React Native architectures, since iOS mounts different classes under each and both are compiled in — selecting a single name would resolve successfully and then mask nothing. Class rules apply to every name that resolves and reject only if none do.SensitivityandRenderingModeenums.setRenderingMode, andrenderingModeon thegetStatesnapshot.