Skip to content

Error on iOS but not web: "Invariant Violation: new NativeEventEmitter() requires a non-null argument., js engine: hermes" #8102

Answered by voxoid0
voxoid0 asked this question in Q&A
Discussion options

You must be logged in to vote

In my case, the only blunder was that I still had some packages installed from when had started out using the JS package instead of @react-native-firebase packages. My original packages.json above has packages firebase and expo-firebase-analytics, and after removing them, then deintegrating and installing the pods, cleaning and building the app, my bare expo app no longer gets the NativeEventEmitter() error. I don't know exactly why that causes the RNFBApp module to be unavailable, but apparently there is interference between those packages.

Thanks for the support, @mikehardy.

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mikehardy
Comment options

@mikehardy
Comment options

Comment options

You must be logged in to vote
3 replies
@voxoid0
Comment options

@mikehardy
Comment options

@mikehardy
Comment options

Comment options

You must be logged in to vote
1 reply
@mikehardy
Comment options

Answer selected by mikehardy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants