Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-native-firebase/crashlytics

Package Overview
Dependencies
Maintainers
3
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-firebase/crashlytics

React Native Firebase - Crashlytics

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
184K
decreased by-0.14%
Maintainers
3
Weekly downloads
 
Created

What is @react-native-firebase/crashlytics?

@react-native-firebase/crashlytics is a React Native library that provides integration with Firebase Crashlytics, a real-time crash reporting tool. It helps developers track, prioritize, and fix stability issues that erode app quality, in real-time.

What are @react-native-firebase/crashlytics's main functionalities?

Crash Reporting

This feature allows you to report crashes to Firebase Crashlytics. The code sample demonstrates how to force a crash for testing purposes.

import crashlytics from '@react-native-firebase/crashlytics';

// Force a crash for testing purposes
crashlytics().crash();

Log Custom Events

This feature allows you to log custom events that can help you understand the sequence of actions leading up to a crash. The code sample shows how to log a custom event.

import crashlytics from '@react-native-firebase/crashlytics';

// Log a custom event
crashlytics().log('User clicked on the purchase button');

Set User Identifiers

This feature allows you to set user identifiers to help you understand which users are affected by crashes. The code sample demonstrates how to set a user identifier.

import crashlytics from '@react-native-firebase/crashlytics';

// Set user identifier
crashlytics().setUserId('12345');

Set Custom Keys

This feature allows you to set custom keys to provide additional context about the crash. The code sample shows how to set a custom key.

import crashlytics from '@react-native-firebase/crashlytics';

// Set custom keys
crashlytics().setAttribute('role', 'admin');

Record Non-Fatal Errors

This feature allows you to record non-fatal errors that do not crash the app but are still important to track. The code sample demonstrates how to record a non-fatal error.

import crashlytics from '@react-native-firebase/crashlytics';

// Record a non-fatal error
try {
  throw new Error('Test non-fatal error');
} catch (error) {
  crashlytics().recordError(error);
}

Other packages similar to @react-native-firebase/crashlytics

Keywords

FAQs

Package last updated on 14 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc