How to integrate Crashlytics with React Native

I am building my application using React Native, and I want to catch the crashes that occur on both sides of the Objective-C application and JavaScript.

I installed the Crashlytics SDK using their guide and installer, and everything went smoothly. I see Objective-C crashes, but not that come from JavaScript.

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

Thanks, Ran.

+15
javascript ios react-native crashlytics
source share
5 answers

I just wrote a blog post about this:

Add Crashlytics to React Native iOS App

The approach I took was to redefine the native reaction logging function to be able to log my own data and see it in the fault logs, as well as generate the original map to see the full stack trace.

+10
source share

You can use response-native-fabric . It has a good guide and js methods for both emergency shutdown and response.

+4
source share

The article for iOS was very useful. I tried to do the same with an Android app. Here is an article about it. Let me know if this helps.

Using Crashlytics with React Native for Android

0
source share
0
source share

appsee was a very good option for me. Works well for react native showing javascript crash.

https://www.appsee.com/features/crash-videos-and-symbolication .

show errors, for example:

enter image description here

and the video was very useful

-one
source share

All Articles