Sentry SDK for React Native
![npm dt](https://img.shields.io/npm/dt/react-native-sentry.svg)
This is a beta release
Requirements:
react-native >= 0.38
for iOSreact-native >= 0.41
for Androidsentry-cli >= 1.9.0
(brew install getsentry/tools/sentry-cli
)
With this SDK, Sentry is now able to provide mixed stacktraces. This means that if a JavaScript call causes a crash in native code, you will see the last call from JavaScript before the crash. This also means that with the new SDK, native crashes are properly handled on iOS.
Full Android support coming soon but it will gracefully downgrade to use raven-js.
Additional device information
When using this library you will get a lot more information about the device surrounding your crashes.
Without native integration
![Raven js only](https://github.com/getsentry/react-native-sentry/raw/master/assets/raven.png)
With native integration
![Additional](https://github.com/getsentry/react-native-sentry/raw/master/assets/additional-device.png)
Mixed Stacktraces(1)
![Mixed Stacktrace](https://github.com/getsentry/react-native-sentry/raw/master/assets/mixed-stacktrace.png)
Documentation
https://docs.sentry.io/clients/react-native/
(1)only supported on iOS
v0.28.0
We had to rename project.ext.sentry
to project.ext.sentryCli
because our own proguard gradle plugin was conflicting with the name.
The docs already reflect this change.
We now use the mainThread
to report errors to RNSentry
. This change is necessary in order for react-native to export constants.
This change shouldn't impact anyone using react-native-sentry
since most of the "heavy" load was handled by sentry-cocoa
in its own background queue anyway.
Bump sentry-cocoa
to 3.8.3