Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to crash a react native android app

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.

like image 650
Sadhu Avatar asked Dec 06 '22 11:12

Sadhu


1 Answers

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();
like image 149
Hardik Virani Avatar answered Jan 19 '23 06:01

Hardik Virani