Need help with sentry-react-native?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

getsentry
1.0K Stars 237 Forks MIT License 1.2K Commits 126 Opened issues

Description

Official Sentry SDK for react-native

Services available

!
?

Need anything else?

Contributors list

# 8,035
sentry
error-h...
TypeScr...
gatsbyj...
683 commits
# 88,802
sentry
watchos
gatsby
gatsbyj...
93 commits
# 106
Python
Rust
Flask
sentry
57 commits
# 27,255
sentry
Dart
gatsbyj...
F#
32 commits
# 18,060
Dart
sentry
logback
log4j2
10 commits
# 11,912
Rust
sentry
error-m...
crash-r...
9 commits
# 91,187
sentry
watchos
error-h...
log4j2
5 commits
# 25,813
sentry
TypeScr...
gatsbyj...
Django
5 commits
# 1,595
React
React N...
iOS
TypeScr...
5 commits
# 1,599
GraphQL
MongoDB
render-...
formik
4 commits
# 6,569
Postgre...
athena
Apache ...
Rust
3 commits
# 13,711
Objecti...
Kotlin
React
iOS
3 commits
# 16,839
sentry
gatsbyj...
Django
Less
3 commits
# 73,884
restify
CSS
sentry
React N...
3 commits
# 3,331
Objecti...
depende...
mac
cocoapo...
3 commits
# 28,820
sentry
gatsbyj...
pcre
Perl
2 commits
# 51,766
swipevi...
React N...
ssh-age...
c-plus-...
2 commits
# 40,251
sentry
log4j2
casperj...
phantom...
2 commits
# 244,220
React
sentry
Android
React N...
1 commit
# 25,262
React N...
Atom
cpp-lib...
c-plus-...
1 commit

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.