How to Integrate Crashlytics with React Native app

22,294

Solution 1

I just wrote a blog post about this:

Add Crashlytics to your React Native iOS app

The approach I took was to override the logging function of react native to be able to log my own stuff and see it on the crash logs and also generated a sourcemap in order to the see full stack trace.

Solution 2

You could use react-native-fabric It has a good guide and has js methods for both crashlytics and answer

Share:
22,294
Ran Yefet
Author by

Ran Yefet

Updated on January 11, 2020

Comments

  • Ran Yefet
    Ran Yefet over 4 years

    I'm building my app using React Native and I want to catch crashes that happen on both Objective-C and JavaScript sides of the app.

    I installed Crashlytics SDK using their guide and installer and everything went smooth. I do get to see crashes from the Objective-C side, but not crashes that occurs from JavaScript.

    Do I need to do something special to catch JavaScript errors and report them to Crashlytics?

    Thanks, Ran.