Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What error tracking services work with React Native? [closed]

Tags:

react-native

The normal tools we use for error tracking native apps don't really work since the crash reports contain minified js. The tools we use for web apps don't seem to support react native. Are there services that do support react native and if not do we have any other options to get useful crash reports?

like image 630
respectTheCode Avatar asked Feb 19 '16 11:02

respectTheCode


People also ask

Which tool you use to track crashes in React native apps?

Crashlytics helps you to collect analytics and details about crashes and errors that occur in your app. It does this through three aspects: Logs: Log events in your app to be sent with the crash report for context if your app crashes.

How do you use the error boundary in React native?

Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed. Error boundaries catch errors during rendering, in lifecycle methods, and in constructors of the whole tree below them.


2 Answers

Heads up that Bugsnag released official support for React Native to get crash and error data on both the js layer and the underlying OS.

It does handle minified JS using sourcemaps. These can be hosted by you and referenced from Bugsnag or hosted via Bugsnang's API.

like image 198
jwold Avatar answered Sep 28 '22 05:09

jwold


Sentry and BugSnag both have dedicated SDKs for React Native:

https://github.com/getsentry/react-native-sentry (doc)

https://github.com/bugsnag/bugsnag-react-native (doc)

They both handle sourcemaps.

like image 33
antoine129 Avatar answered Sep 28 '22 04:09

antoine129