Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
noibu-react-native-recorder
Advanced tools
React-Native SDK for NoibuJS to collect errors in React-Native applications
A ReactNative plugin that allows integrating Clarity with your application.
npm install react-native-clarity
Note: The Clarity package depends on native code to run, therefore you have to ship a new build after integrating the package.
import { LogLevel, initialize, setCustomUserId, setCustomSessionId, setCustomTag, setCurrentScreenName, getCurrentSessionId } from 'react-native-clarity';
// Initialize Clarity.
const clarityConfig = {
logLevel: LogLevel.Verbose,
allowMeteredNetworkUsage: true
};
initialize('<ProjectId>', clarityConfig);
// Pause Clarity capturing.
pause();
// Resume Clarity capturing if paused.
resume();
// Returns true if clarity was paused.
isPaused().then((paused) => {...});
// Set custom user id.
setCustomUserId("<CustomUserId>");
// Set custom session id.
setCustomSessionId("<CustomSessionId>");
// Set custom tag.
setCustomTag("key", "value");
// Setting the current screen name when using React Navigation
import { NavigationContainer useNavigationContainerRef } from '@react-navigation/native';
const HomeScreen = ({...}) => {
const navigationRef = useNavigationContainerRef();
const routeNameRef = React.useRef();
return (
<NavigationContainer
ref={navigationRef}
onReady={() => {
routeNameRef.current = navigationRef.getCurrentRoute().name;
setCurrentScreenName(routeNameRef.current);
}}
onStateChange={() => {
const previousRouteName = routeNameRef.current;
const currentRouteName = navigationRef.getCurrentRoute().name;
if (previousRouteName !== currentRouteName) {
routeNameRef.current = currentRouteName;
setCurrentScreenName(currentRouteName);
}
}}
>
{/* ... */}
</NavigationContainer>
);
};
// Get current session id to correlate with other tools.
getCurrentSessionId().then((id) => {...});
// Get current session url to correlate with other tools.
getCurrentSessionUrl().then((url) => {...});
/**
* Initializes the Clarity SDK if the API level is supported.
*
* @param projectId [REQUIRED] The Clarity project id to send data to.
* @param config [OPTIONAL] The clarity config, if not provided default values are used.
*/
function initialize(projectId: string, config?: ClarityConfig)
/**
* The configuration that will be used to customize the Clarity behaviour.
*
* @param userId [OPTIONAL default = null] A custom identifier for the current user. If passed as null, 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 [OPTIONAL default = LogLevel.None] The level of logging to show in the device logcat stream.
* @param allowMeteredNetworkUsage [OPTIONAL default = false] Allows uploading session data to the servers on device metered network.
* @param enableWebViewCapture [OPTIONAL default = true] Allows Clarity to capture the web views DOM content.
* @param allowedDomains [OPTIONAL default = ["*"]] The whitelisted domains to allow Clarity to capture their DOM content.
* If it contains "*" as an element, all domains will be captured.
* @param disableOnLowEndDevices [OPTIONAL default = false] Disable Clarity on low-end devices.
* @param maximumDailyNetworkUsageInMB [OPTIONAL default = null] Maximum daily network usage for Clarity (null = No limit). When the limit is reached, Clarity will turn on lean mode.
*/
interface ClarityConfig {
userId?: string | null;
logLevel?: LogLevel;
allowMeteredNetworkUsage?: boolean;
enableWebViewCapture?: boolean;
allowedDomains?: string[];
disableOnLowEndDevices?: Boolean;
maximumDailyNetworkUsageInMB?: number;
}
MIT
FAQs
React-Native SDK for NoibuJS to collect errors in React-Native applications
The npm package noibu-react-native-recorder receives a total of 0 weekly downloads. As such, noibu-react-native-recorder popularity was classified as not popular.
We found that noibu-react-native-recorder 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.