@oxvo/react-native
v0.5.0
Published
OxvoSessions React Native bridge for Browser SDK event collection.
Maintainers
Readme
@oxvo/react-native
React Native bridge for OxvoSessions mobile session capture.
Install
npm install @oxvo/react-nativeStart a Session
import OxvoSessions, { setMetadata, setUserID } from '@oxvo/react-native';
OxvoSessions.browser.startSession(
'ws_live_01HZX8M4B3',
{
screen: true,
crashes: true,
analytics: true,
logs: true,
},
'https://api.oxvo.com/ingest',
);
setUserID('acct_2048');
setMetadata('plan', 'growth');Optional Helpers
patchNetwork(...): forward React Native network activity into the session streamsendMessage(...): emit custom payloads, including GraphQL tracesORTouchTrackingView: native touch tracking wrapperORTrackedInput: tracked text inputORSanitizedView: sanitized container for sensitive content
GraphQL Bridge Pattern
@oxvo/browser-graphql can also be used in React Native by forwarding middleware output through sendMessage(...).
Documentation: https://docs.oxvo.com/en/rn-sdk/
