Skip to content
master
Go to file
Code

Latest commit

* test: Github Actions Workflow to Build, Test, and Bundle

* fix: Fix build path

* fix: Fix metro bundler config

* fix: Fix artifact dir

* ref: Remove travis

* fix: Make build dir

* feat: Copy over Zeus job

* ref: disable matrix fail-fast

* ref: Explicit pull_request branches

Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com>

* ref: Rename workflow file

Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com>
7eb9d79

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 23, 2017
Jul 31, 2020
Feb 15, 2017

README.md


Sentry SDK for React Native

Travis 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
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow
You can’t perform that action at this time.