corymsmith / react-native-fabric

A React Native library for Fabric, Crashlytics and Answers
MIT License
1.31k stars 236 forks source link

not able to show crash report in fabric #118

Closed ikzjfr0 closed 7 years ago

ikzjfr0 commented 7 years ago

I can see the report in fabric if I use something like below Crashlytics.recordError('something went wrong!');

but no report will be shown in fabric if it's a crash issue or unhandled issue. For exapmle, it does not show in fabric if i use something like this:

var err = new Error('my error')
 throw err
ikzjfr0 commented 7 years ago

i'm wrong, with integration with react-native-fabric-crashlytics, by default, crash reporting is not sent to fabric in development env. so if you really want to see report in development env, you need to remove following line in react-native-fabric-crashlytics

if (__DEV__) {
    // Don't send exceptions from __DEV__, it's way too noisy!
    // Live reloading and hot reloading in particular lead to tons of noise...
    return;
  }