firebase-crashlytics
Skill0 starsChanged 5 months agoMITView on GitHub
Adds Firebase Crashlytics crash reporting to React Native / Expo apps — config plugin install, JS error capture, custom logs and user IDs, source map upload via EAS, native dSYM upload, and forcing test crashes. Use whenever the user wants production crash visibility for a mobile app.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- renansouza12/mixtape-their own version, first seen Oct 13, 2026
- cuonnd/Claude_skillstheir own version, first seen Oct 13, 2026
- evanca/flutter-ai-rulestheir own version, first seen Aug 24, 2026
- baliadventours/Tripbone-SaaS-Productiontheir own version, first seen Aug 5, 2026
- VolantTyler/Cognitive-Bridge-Antigravitytheir own version, first seen Jun 5, 2026
- firebase/agent-skillstheir own version, first seen Jun 5, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- evanca/flutter-ai-rules★ 669same name
- firebase/agent-skills★ 506same name
- VolantTyler/Cognitive-Bridge-Antigravity★ 1same name
- baliadventours/Tripbone-SaaS-Production★ 0same name
- cuonnd/Claude_skills★ 0same name
- renansouza12/mixtape-★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- firebase-ai-logicSkill
- firebase-analyticsSkill
- firebase-app-checkSkill
- firebase-architectureSkill
- firebase-authSkill
- firebase-cloud-functionsSkill
- firebase-cost-optimizationSkill
- firebase-emulatorsSkill
- firebase-expoSkill
- firebase-firestoreSkill
- firebase-hostingSkill
- firebase-messagingSkill
- firebase-realtime-databaseSkill
- firebase-remote-configSkill
- firebase-storageSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Wait 5-15 minutes, then check Firebase Console → Crashlytics
- Distinctive: line 74
If nothing appears after 30 minutes, see references/troubleshooting.md.
- Distinctive: line 99
Add context so you can debug a specific user's crashes:
- Very specific: line 154
Reading minified stacks: If you see at l (index.android.bundle:1:12345), source maps are not wired.
- Very specific: line 155
Setting user ID before sign-in completes: Wait for onAuthStateChanged to fire with a user before calling setUserId.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Firebase Crashlytics (Expo / React Native)
Minimum viable example
import crashlytics from "@react-native-firebase/crashlytics";
// Set context once the user signs in
crashlytics().setUserId(user.uid);
// In your error boundary
componentDidCatch(error: Error) {
crashlytics().recordError(error);
}Native crashes are captured automatically once the plugin is installed. JS errors require recordError — they don't surface otherwise.
1. Install
npx expo install @react-native-firebase/crashlyticsapp.json:
{
"expo": {
"plugins": [
"@react-native-firebase/app",
"@react-native-firebase/crashlytics"
]
}
}Rebuild — Crashlytics requires native linking:
npx expo prebuild --clean
eas build --profile development --platform all2. Verify it works
The most reliable way to confirm Crashlytics is wired is to force a crash and check the console:
import crashlytics from "@react-native-firebase/crashlytics";
// Tied to a debug-only button:
function ForceCrashButton() {
return <Button title="Crash" onPress={() => crashlytics().crash()} />;
}After tapping:
- The app dies (this is expected)
- Relaunch the app — Crashlytics uploads the report on next start
- Wait 5-15 minutes, then check Firebase Console → Crashlytics
If nothing appears after 30 minutes, see references/troubleshooting.md.
3. JavaScript errors
Native crashes are captured automatically. JS errors are not — wrap your error boundary and unhandled-rejection handlers:
import crashlytics from "@react-native-firebase/crashlytics";
// Unhandled promise rejections
const origHandler = global.HermesInternal?.hasPromise?.()
? require("promise/setimmediate/rejection-tracking")
: null;
// Or use react-native-exception-handler / your error boundary
// In your error boundary's componentDidCatch:
componentDidCatch(error: Error, info: React.ErrorInfo) {
crashlytics().recordError(error, error.name);
}recordError reports a non-fatal — visible in Crashlytics under a separate tab. The app keeps running.
4. Context: user IDs and custom keys
Add context so you can debug a specific user's crashes:
import auth from "@react-native-firebase/auth";
auth().onAuthStateChanged((user) => {
if (user) {
crashlytics().setUserId(user.uid);
crashlytics().setAttributes({
email: user.email ?? "",
tier: "pro",
});
} else {
crashlytics().setUserId("");
}
});setUserId is searchable in the console — typing the uid jumps straight to that user's reports.
5. Breadcrumbs (custom logs)
Log a trail of recent actions so you can see what led to the crash:
crashlytics().log("User tapped Pay button");
crashlytics().log(`Order ${orderId} submitted`);These appear in the crash report under "Logs". Keep them short — they have a per-report quota.
6. Source maps (so JS stacks are readable)
Without source maps, JS errors show minified stacks. To upload maps on every EAS build, add a post-build hook in eas.json:
{
"build": {
"production": {
"ios": { "buildConfiguration": "Release" },
"android": { "buildType": "app-bundle" }
}
}
}Then run the upload step locally after eas build finishes (the build artifacts include the sourcemap). The exact command depends on @react-native-firebase version — newer versions auto-upload via the bundle phase script when Crashlytics is in the plugin list.
For native iOS dSYMs (required for symbolicated native crashes): EAS Build uploads dSYMs to App Store Connect automatically; you must download them and upload to Crashlytics if you're not using auto-upload. Enable automatic dSYM upload in the Firebase console: Project Settings → iOS app → "Upload symbols".
7. Common mistakes
- Expecting JS errors to appear automatically. They don't — only native crashes. You must call
recordErrorfrom your error boundary. - Forgetting to relaunch after a crash. Crashlytics uploads on the next app start, not from the crashed process.
- Testing in debug. Some configs disable Crashlytics in debug builds. Force a crash in a release / preview build to verify.
- Reading minified stacks. If you see
at l (index.android.bundle:1:12345), source maps are not wired. - Setting user ID before sign-in completes. Wait for
onAuthStateChangedto fire with a user before callingsetUserId.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

