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?
-
Hey @respectTheCode. Long time passed since your question (hopefully not too long for you to answer the following questions :), so you may have gained experience with one or more of the tools. Can you share your experience (preferable as an addition to your question, since it is harder to read unformatted comments...). In particular, I am interested in experience using Crashlytics and Sentry with react native (one of them, not both): props and cons regarding functionality, pricing. I read that Crashlytics doesn't provide crash reporting for js crashes. True?Yossi– Yossi2020-09-05 15:25:32 +00:00Commented Sep 5, 2020 at 15:25
-
@Yossi we still use sentry and still have issues constantly getting readable crash reports.respectTheCode– respectTheCode2020-09-10 17:14:37 +00:00Commented Sep 10, 2020 at 17:14
-
have you tried crashlytics?Yossi– Yossi2020-09-10 19:20:28 +00:00Commented Sep 10, 2020 at 19:20
7 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.
Comments
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.
Comments
[TL/DR]
We created a react-native-bugsnag lib before the official bugsnag lib was out, but it's now deprecated.
Use the official instead.
[Long version]
We were also looking for a way to report errors on react-native and since I was not really happy with the existing solutions I found (Crashlytics, and sentry), me and Joshua Pinter decided to write our own implementation of a react-native module, that works with bugsnag.
Here it is: react-native-bugsnag.
It supports both iOS/Java and Javascript handled and unhanded crash reporting.
I hope you enjoy!
3 Comments
Also now React Native + Code Push + Bugsnag for a really pleasant bug fixing relationship https://blog.bugsnag.com/react-native-plus-code-push/
Comments
I know of two ways this is being done. First, Crashyltics. I use it, but it requires a few tweaks apparently to bubble up the javascript side of the fence. Here's a great article by delivery.com on what's involved with that...
Add Crashlytics to your React Native iOS app
Second, here's a react native integration with Sentry
Hope you find these useful.
9 Comments
Bug snag - https://docs.bugsnag.com/platforms/react-native/react-native/ Crashlytics - https://www.npmjs.com/package/@react-native-firebase/crashlytics
This are tools used for React native to report bugs. Hope it helps ! Thank you