ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
618 stars 156 forks source link

`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method. #221

Closed hyoretsu closed 1 year ago

hyoretsu commented 2 years ago

Title and

`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
equationalapplications commented 1 year ago

I am also getting this error when I run jest to test rendering.

equationalapplications commented 1 year ago

I fixed my error by mocking the native event emitter. (https://stackoverflow.com/questions/70506663/invariant-violation-new-nativeeventemitter-requires-a-non-null-argument)