react-native-fabric: Cannot read property 'crash' of undefined - on android
I got this for android using;
react-native-cli: 1.3.0
react-native: 0.38.0
and
"react-native-fabric": "^0.3.2" in package.json

Followed this resource, but still the same error
I imported the class in both ways as;
import Fabric, {Crashlytics} from 'react-native-fabric';
and secondly as
var Fabric = require('react-native-fabric');
var {Crashlytics} = Fabric;
In both cases, it gave the same error. 😦
trace from VS Code debugger:
Cannot read property 'crash' of undefined
Cannot read property 'crash' of undefined
Module AppRegistry is not a registered callable module (calling runApplication)
Unable to symbolicate stack trace: The stack is null
Unable to symbolicate stack trace: The stack is null
Any one came up with the solution to this, buddies !
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (7 by maintainers)
@vdlindenmark This means you don’t have the native module registered correctly for Android.
That’s right @corymsmith
I figured out that while using the react-native-navigation library, the iOS version works perfect, but for android, we change MainApplication.java class to extend to
NavigationApplicationwhich creates a problem forreact-native-fabricThis is how is got it working with
react-native-navigationHope this helps!
I think i have the same error. The app crashed on Android and won’t load. On iOS everything works fine.