Skip to content

macroactive-io/sentry-react-native

 
 

Repository files navigation


Sentry SDK for React Native

Travis npm version npm dm npm dt

Requirements

  • react-native >= 0.56.0

Features

  • Automatic JS Error Tracking (using @sentry/browser)
  • Automatic Native Crash Error Tracking (using sentry-cocoa & sentry-android under the hood)
  • Offline storage of events
  • On Device symbolication for JS (in Debug)
  • Autolinking
  • Events with enriched device data
  • RAM bundle support
  • Hermes support (coming soon see #649)
  • Expo support (sentry-expo)

Installation and Usage

To install the package:

npm install --save @sentry/react-native
# OR
yarn add @sentry/react-native

How to use it:

import * as Sentry from "@sentry/react-native";

Sentry.init({
  dsn: "__DSN__"
});

Sentry.setTag("myTag", "tag-value");
Sentry.setExtra("myExtra", "extra-value");
Sentry.addBreadcrumb({ message: "test" });

Sentry.captureMessage("Hello Sentry!");

Documentation

https://docs.sentry.io/platforms/react-native/

About

Official Sentry SDK for react-native

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 36.2%
  • TypeScript 27.1%
  • Ruby 14.4%
  • Python 11.3%
  • Objective-C 5.7%
  • Makefile 2.8%
  • Other 2.5%