Nervously Practice Multithreading

    @logirix/react-native-sentry
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.9 • Public • Published


    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 @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/

    Install

    npm i @logirix/react-native-sentry

    DownloadsWeekly Downloads

    0

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    282 kB

    Total Files

    90

    Last publish

    Collaborators

    • petrus.carvalho
    • reyalpsirc
    • klaasoost