react-native-sentry-android

0.1.6 • Public • Published

react-native-sentry-android

Installation

Download and link with npm install --save react-native-sentry-android && rnpm link, and add your Sentry DSN to your AndroidManifest.xml with:

<meta-data android:name="com.getsentry.raven.android.DSN"
           android:value="https://publicKey:secretKey@host:port/1?options" />

Usage

import sentry from 'react-native-sentry-android'
 
// ...
 
try {
  somethingThatMightThrow()
} catch (e) {
  sentry.capture({
    message: e.toString(),
    level: 'fatal',
    stack: e.stack,
    class: 'MyComponent',
  }).then(function() {
    // apologise to the user for the failure
  })
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.63latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.63
0.1.51
0.1.41
0.1.31
0.1.21
0.1.11
0.1.01
0.0.161
0.0.151
0.0.141
0.0.131
0.0.121
0.0.111
0.0.101
0.0.91
0.0.81
0.0.71
0.0.61
0.0.51
0.0.41
0.0.31
0.0.21

Package Sidebar

Install

npm i react-native-sentry-android

Weekly Downloads

24

Version

0.1.6

License

BSD-3-Clause

Last publish

Collaborators

  • antino