Reputation: 3427
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.
Upvotes: 19
Views: 23071
Reputation: 2580
You could use react-native-fabric It has a good guide and has js methods for both crashlytics and answer
Upvotes: 4
Reputation: 988
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.
Upvotes: 12