๐ก What is Firebase Crashlytics?
Firebase Crashlytics is a real-time crash reporting tool that helps developers:
- ๐ Track and diagnose app crashes and errors
- ๐ Understand the root causes using detailed stack traces
- ๐ Monitor the stability of your app in production
It's essential for maintaining a stable and reliable user experience post-deployment.
โ Why Should You Use Crashlytics?
๐ซ Without Crashlytics:
- You won't know if your app crashes in production
- Users are unlikely to report every crash manually
โ With Crashlytics:
- Get real-time crash reports
- See detailed logs, device info, and contextual data
- Prioritize and fix high-impact issues quickly
๐ ๏ธ Step-by-Step Integration Guide
โ 1. Create a Firebase Project
Go to Firebase Console and sign in or create an account.
๐ฑ 2. Register Your App in Firebase Console
Click on the Android or iOS icon to add your app.
๐น For Android:
- Enter your Package Name (e.g.,
com.mycorp.myapp)
๐น For iOS:
- Enter your Bundle ID (must match the ID in Xcode)
๐ฅ Download Configuration Files:
-
Android:
google-services.json -
iOS:
GoogleService-Info.plist
๐ก To add another platform later, click "Add App" in Firebase Console and repeat the steps.
โ๏ธ 3. Configure React Native App (Expo + EAS)
Install Firebase and Crashlytics Dependencies
npx expo install @react-native-firebase/app
npx expo install @react-native-firebase/crashlytics
๐งฉ 4. Update app.json or app.config.js
Add Firebase configuration and plugins:
{
"expo": {
"android": {
"googleServicesFile": "./google-services.json",
"package": "com.mycorp.myapp"
},
"ios": {
"googleServicesFile": "./GoogleService-Info.plist",
"bundleIdentifier": "com.mycorp.myapp"
},
"plugins": [
"@react-native-firebase/app",
"@react-native-firebase/auth",
"@react-native-firebase/crashlytics",
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
]
}
}
โ๏ธ 5. Prebuild Native Code
Run this to generate native iOS and Android code:
npx expo prebuild --clean
๐ Always do this after adding or removing native packages like Firebase modules.
๐ 6. Build or Run the App
Using EAS Build:
eas build --platform android
eas build --platform ios
Or Run Locally:
npx expo run:android
npx expo run:ios
๐งช 7. Test Crashlytics Integration
To test a crash, add this to your code:
import crashlytics from '@react-native-firebase/crashlytics';
crashlytics().log('Manually testing crash');
crashlytics().crash(); // This will cause a test crash
โ ๏ธ Important Notes & Limitations
๐ซ Crashlytics does NOT work in Expo Go
- Expo Go does not support native Firebase modules like Crashlytics.
- You must use EAS Build, a custom development client, or run a local native build to use Crashlytics.







Top comments (1)
๐