first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import * as Crashlytics from '@react-native-firebase/crashlytics';
|
||||
|
||||
export const logCrash = (error, context = '') => {
|
||||
if (context) {
|
||||
Crashlytics.setAttributes({ screen: context });
|
||||
}
|
||||
Crashlytics.recordError(error);
|
||||
};
|
||||
Reference in New Issue
Block a user