-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] Invariant Violation: Native module cannot be null. - RNFBNativeEventEmitter #4265
Comments
|
Hello 👋, to help manage issues we automatically close stale issues.
|
|
@kevinlin505 What solution I did was installing the new version of Firebase v6+ via |
|
Hello 👋, to help manage issues we automatically close stale issues.
|
|
As mentioned by @mikehardy mocking NativeEventEmitter worked for me, |
|
You may also like this, it's slowly grown more full-featured and it is what we use internally when we jest test the module itself https://github.com/invertase/react-native-firebase/blob/master/jest.setup.ts |
Issue
I had tried to use the migration from v5 to latest release and it works fine. But my current concern is the
jest --coveragetest, which failing on my end.react-native
package.json>dependencies:
screenshot
Project Files
Javascript
Click To Expand
package.json:# N/Afirebase.jsonfor react-native-firebase v6:# N/AiOS
Click To Expand
ios/Podfile:pod installAppDelegate.m:// N/AAndroid
Click To Expand
Have you converted to AndroidX?
android/gradle.settingsjetifier=truefor Android compatibility?jetifierfor react-native compatibility?android/build.gradle:// N/Aandroid/app/build.gradle:// N/Aandroid/settings.gradle:// N/AMainApplication.java:// N/AAndroidManifest.xml:<!-- N/A -->Environment
Click To Expand
react-native infooutput:react-native-firebaseversion you're using that has this issue:e.g. 5.4.3Firebasemodule(s) you're using that has the issue:e.g. Instance IDTypeScript?Y/N&VERSIONReact Native FirebaseandInvertaseon Twitter for updates on the library.The text was updated successfully, but these errors were encountered: