![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-clarity
Advanced tools
A plugin to provide the Clarity experience for the React Native applications.
A ReactNative plugin that allows integrating Clarity with your application.
npm install react-native-clarity
import { initialize, setCustomUserId, getCurrentSessionId, setCurrentScreenName } from 'react-native-clarity';
// Initialize Clarity.
initialize("<ProjectId>");
// Set custom user id.
setCustomUserId("react@native.com");
// Get current session id to correlate with other tools.
getCurrentSessionId().then((id) => {...});
// Setting the current screen name when using React Navigation
import { ..., useFocusEffect } from '@react-navigation/native';
const HomeScreen = ({...}) => {
useFocusEffect(
React.useCallback(() => {
setCurrentScreenName("Home");
// To clear the current screen name when the screen goes out of focus:
return () => { setCurrentScreenName(undefined); }
}, [])
);
...
};
/**
* Initializes the Clarity plugin with the provided parameters.
*
* @param projectId The Clarity project id to send data to.
* @param userId A custom identifier for the current user. If passed as undefined, the user id
* will be auto generated. The user id in general is sticky across sessions.
* The provided user id must follow these conditions:
* 1. Cannot be an empty string.
* 2. Should be base36 and smaller than "1Z141Z4".
* @param logLevel The level of logging to show in the device logcat stream ("Verbose", "Debug", "Info", "Warning", "Error", "None").
* @param allowMeteredNetworkUsage Allows uploading session data to the servers on device metered network.
* @param enableWebViewCapture Allows Clarity to capture the web views DOM content.
* @param allowedDomains The whitelisted domains to allow Clarity to capture their DOM content.
* If it contains "*" as an element, all domains will be captured.
*/
function initialize(
projectId: string,
userId?: string,
logLevel: string = "None",
allowMeteredNetworkUsage: boolean = false,
enableWebViewCapture: boolean = true,
allowedDomains: string[] = ["*"])
MIT
FAQs
A plugin to provide the Clarity experience for the React Native applications.
The npm package react-native-clarity receives a total of 6,197 weekly downloads. As such, react-native-clarity popularity was classified as popular.
We found that react-native-clarity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.