How to receive full stacktrace with methods, file paths, and line numbers for JavaScript instead native errors via fabric.io in React-native

Viewed 2184

I have manage to setup the fabric.io in ios and android using https://github.com/corymsmith/react-native-fabric but the crash report is in native code i.e. java and objective-c, that is completely unhelpful.

Is there way to receive the full stacktrace with methods, file paths, and line numbers for JavaScript instead native errors.

by doing some research I found if I upload sourcemap than there is a possibility of receiving the JavaScript stacktrace.

2 Answers

Mike from Fabric here. We do not have official support for React-Native built apps at the moment so if you set things up, you may see less helpful crash logs. We always prioritize being excellent in a few areas rather then ok in many.

At this moment I am aware of two companies that do this:

1) Sentry: https://sentry.io/welcome/
2) Bugsnag: https://www.bugsnag.com/

I eventually went with Sentry since it has a bigger community and you can install it on premise if you want to.

Bugsnag has a cool feature advertized which is snoozing the crashes which almost made me go for it, but Sentry has it too.

I was using Fabric too, but eventually moved to Sentry due to this.

Related