1.0.9 • Published 5 years ago

@logirix/react-native-sentry v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Travis npm version npm dm npm dt

Requirements

  • react-native >= 0.56.0

Features

Installation and Usage

To install the package:

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

How to use it:

import * as Sentry from "@logirix/react-native-sentry";

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.

Documentation

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