I am working on react-native-firebase crashlytics. I am using rnfirebase starter kit. There we have crashlytics integrated with the project. Now, I want to crash my app to check the crash report.
How to crash a react native android app
Asked Answered
You need to import packages react-native-fabric and another line in initial file.
import Fabric from 'react-native-fabric';
var { Crashlytics } = Fabric;
Crashlytics.crash();
It is now:
import crashlytics from '@react-native-firebase/crashlytics';
then
crashlytics().crash()
You need to need to import the crashlytics and use crash() to do a manual crash.
import crashlytics from 'react-native-fabric-crashlytics';
Calling the code below should crash your application:
crashlytics().crash();
You can import crashlytics and use crash() to do a native crash.
import crashlytics from 'react-native-fabric-crashlytics';
crashlytics().crash();
© 2022 - 2025 — McMap. All rights reserved.