4.0.0 • Published 6 months ago

@uplift-ltd/sentry-react-native v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@uplift-ltd/sentry-react-native

Installation

npm i --save @uplift-ltd/sentry-react-native

API

import { captureException, captureMessage } from "@uplift-ltd/sentry-react-native";

Sentry.captureException(new Error("Baroque"));

Sentry.captureMessage("Does not compute");

Add NEXT_PUBLIC_SENTRY_DSN to .env. If using in Node (for example for Next.js) you can add a separate SENTRY_DSN (defaults to NEXT_PUBLIC_SENTRY_DSN if not provided).

React Native

Note: May need to set up babel-plugin-transform-inline-environment-variables.