JSPM

@sentry/react-native

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 759562
  • Score
    100M100P100Q183585F
  • License MIT

Official Sentry SDK for react-native

Package Exports

  • @sentry/react-native

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sentry/react-native) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


Sentry SDK for React Native

Travis npm version npm dm npm dt deps deps dev deps peer

Requirements

  • react-native >= 0.56.0

Installation and Usage

To install the SDK simply do

yarn add @sentry/react-native
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, world!");

Documentation

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