New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bug-catch/react-native

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bug-catch/react-native

Catch all errors and log custom events within react-native app.

latest
Source
npmnpm
Version
2.3.17
Version published
Maintainers
1
Created
Source

Bug Catch

Catch all errors and log custom events within any website.

React Native / Server

Usage

Install

$ npm install --save @bug-catch/react-native

Initiate

Call Bugcatch as-soon-as-possible within your code.

bugcatch.init({
    base_url: "https://example.com/bugcatch",

    // Optional
    release: "2.1.0",
    //       ^^^^^^^ --> process.env.npm_package_version
});

Thats it! - sit back and try not to panic as the bugs roll in!


You can also use the recordEvent method to record custom events with data attached (the data can be of any type and size).

bugcatch.recordEvent(name, data, userOptions);

// Crude Example,
// An event for users which stay on the page longer than 10 minutes
setTimeout(function () {
    bugcatch.recordEvent(
        "loyal_viewer",
        { timeOnPage: "10 minutes" },
        {
            base_url: "https://example.com/bugcatch",
            release: "2.1.0",
        }
    );
}, 1000 * 60 * 10);

License

Apache-2.0 License

Keywords

bugs

FAQs

Package last updated on 09 Aug 2023

Did you know?

Socket

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.

Install

Related posts