react-native-clarity
A ReactNative plugin that allows integrating Clarity with your application.
Installation
npm install react-native-clarity
Usage
import { initialize } from 'react-native-clarity';
import { setCustomUserId } from 'react-native-clarity';
import { getCurrentSessionId } from 'react-native-clarity';
initialize("<ProjectId>");
setCustomUserId("react@native.com");
getCurrentSessionId().then((id) => {...});
Initialization arguments
function initialize(
projectId: string,
userId?: string,
logLevel: string = "None",
allowMeteredNetworkUsage: boolean = false,
enableWebViewCapture: boolean = true,
allowedDomains: string[] = ["*"])
License
MIT