GithubHelp home page GithubHelp logo

isabella232 / sentry-react-native Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getsentry/sentry-react-native

0.0 0.0 0.0 49.82 MB

Official Sentry SDK for react-native

Home Page: https://sentry.io

License: MIT License

Java 10.49% JavaScript 3.09% Objective-C 6.97% Ruby 0.55% Shell 0.24% TypeScript 78.66%

sentry-react-native's Introduction


Sentry SDK for React Native

Travis E2E Tests npm version npm dm npm dt Discord Chat

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
  • Expo support (sentry-expo)

Installation and Usage

To install the package:

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

If you are using a version of React Native <= 0.60.x link the package using react-native.

react-native link @sentry/react-native
# OR, if self hosting
SENTRY_WIZARD_URL=http://sentry.acme.com/ react-native link @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!");

Upgrade

If you are coming from react-native-sentry which was our SDK < 1.0 you should follow the upgrade guide and then follow the install steps.

Resources

  • Documentation
  • Forum
  • Discord Chat
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow

sentry-react-native's People

Contributors

a-tokyo avatar alexnaiman avatar alloy avatar amwam avatar apoorv-arora avatar awinograd avatar azundo avatar benhowes avatar brendonsled avatar brentvatne avatar bretthoerner avatar bruno-garcia avatar cadesalaberry avatar ckrodrigues avatar cruzach avatar dependabot-preview[bot] avatar dependabot[bot] avatar empact avatar hazat avatar jan-auer avatar jennmueng avatar lebedev avatar lobsterkatie avatar marandaneto avatar mitsuhiko avatar ovr avatar philipphofmann avatar snyk-bot avatar swatinem avatar tonyo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.