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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With