2.3.17 • Published 9 months ago

@bug-catch/react-native v2.3.17

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

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

2.1.9

9 months ago

2.3.17

9 months ago

2.2.17

9 months ago

2.1.2

9 months ago

2.1.14

9 months ago

2.1.4

9 months ago

2.2.16

9 months ago

2.1.15

9 months ago

2.1.3

9 months ago

2.1.12

9 months ago

2.1.13

9 months ago

2.1.5

9 months ago

2.1.10

9 months ago

2.1.8

9 months ago

2.1.11

9 months ago

2.1.7

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.0

2 years ago

0.9.0

2 years ago