Skip to content
Official Sentry SDK for react-native
Java TypeScript Ruby Python Objective-C Makefile Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update ISSUE_TEMPLATE.md Sep 4, 2019
.travis meta: Run build Jul 3, 2019
.vscode feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
android fix: Unhandled Promise rejection on Android Sep 16, 2019
appium feat: iOS Refactoring Oct 24, 2017
assets Update screenshots Jun 23, 2017
examples @ 4ce1e6f ci: Up build tools (#537) Jan 31, 2019
ios fix: Typo Sep 2, 2019
scripts fix: Versionbump script Jul 11, 2019
src/js release: 1.0.6 Sep 18, 2019
.craft.yml meta: Rename repo Jul 3, 2019
.gitignore feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
.gitmodules feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
.npmignore feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
.snyk fix: .snyk & package.json to reduce vulnerabilities (#620) Jul 15, 2019
.travis.yml ci: Up build tools (#537) Jan 31, 2019
CHANGELOG.md fix: Error message Sep 18, 2019
LICENSE.md Change version Feb 15, 2017
Makefile Add npm publish Aug 3, 2017
README.md Update README.md Sep 4, 2019
RNSentry.podspec fix: AndroidX, Autolink, Cocoapods (#613) Jul 4, 2019
package.json release: 1.0.6 Sep 18, 2019
react-native.config.js fix: AndroidX, Autolink, Cocoapods (#613) Jul 4, 2019
sentry.gradle Cleaning up source map after upload (#642) Aug 27, 2019
tsconfig.build.json feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
tsconfig.json feat: 1.0.0 @sentry/react-native (#589) Jul 3, 2019
tslint.json fix: Linting + remove console Jul 31, 2019
yarn.lock feat: Set release/dist for native crashes Sep 2, 2019

README.md


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/

You can’t perform that action at this time.