Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-bugsnag

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-bugsnag

Community-created Bugsnag package for React Native. It consumes the Bugsnag API to report errors from both the React Native (Javascript) environment AND the native (Obj-C or Java) environment.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Native Bugsnag npm version

Easily add Bugsnag exception monitoring support to your React Native application.

This is a third party library and we are NOT affiliated with Bugsnag.._

This library works with iOS and Android, and what it actually does is, it helps you poor folk get reports from crashes/exceptions right into the bugsnag dashboard. You can then go ahead and repair the bug yourself without having to ask your team members or your client a zillion questions just to be able to reproduce the error. Now you know where the crash happened and why remotely and instantaneously. Isn't that neat? You're so cool!

Installation

Start with:

rnpm install react-native-bugsnag

Theres a quick guide over to our wiki.

Look ma, theres an working example too:

Check it out

Enjoy!

##Sample code:


import RNBugsnag from 'react-native-bugsnag';

class AnExampleClass {
  /**
   * ## Constructor
   */
  constructor( props ) {

    let bugsnag = new RNBugsnag({suppressDevErrors:false, identifier:{userId: "aUserId", userEmail:"anEmail@domain.com", userFullname:"aFullName"}});

    setTimeout(function(){
      bugsnag.notify("WhateverError", "This error was just meant to be.", "error"); 
    }, 3000);

  }
};

Breaking changes to version 1.0.0

We now use new Bugsnag() instead of directly calling Bugsnag(). Note that even though we use the new keyword we're still receiving a singleton instance and thus it will only be used as a constructor the first time you call it.

Checklist:

  • Supports iOS.
  • Supports Android.
  • Configure Bugsnag from JS.
  • Handle different handled exceptions in JS.
  • Show line numbers (and method names?) in JS errors.
  • Test RNPM installation process and confirm its working.

Keywords

FAQs

Package last updated on 17 Sep 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc