react-native-firebase V6 Crashlytics

2020-08-19 hit count image

Let's see how to use react-native-firebase(V6) for Firebase Crashlytics.

Outline

In this blog post, I will show how to configure react-native-firebase to use Crashlytics in Firebase.

This blog post is a series. If you want to know more, see the blog posts below.

If you want to know how to use react-native-firebase previous version(V5), see the blog posts below.

Install and prepare react-natiev-firebase

see the blog post to install react-native-firebase, and prepare Firebase project.

Install library

execute the command below to install crashlytics in react-native-firebase.

npm install --save @react-native-firebase/crashlytics

Execute the command below to bind react-native-firebase Crashlytics to iOS project.

cd ios
pod install

Configure Firebase project

Next, we need to configure Google Firebase project for Crashlytics. Go to Firebase Console, and click Crashlytics menu on the left.

crashlytics add sdk

Click Add SDK on the top to add SDK. Also, change iOS/Android by selecting the project beside Crashlytics title, and click Add SDK to add iOS, and Android both.

Completed

Done! We’ve configured react-native-firebase to use Firebase Crashlytics.

crashlytics integration

If you configured react-native-firebase Crashlytics, and start React Native project well, you can see the screen like above.

Posts