microsoft / cognitive-services-sdk-react-native-example

Example repo integrating the JavaScript Speech SDK with a react native that runs on Android and iOS
20 stars 9 forks source link

new NativeEventEmitter() Warning #29

Open muchai-mercy opened 1 year ago

muchai-mercy commented 1 year ago

WARN new NativeEventEmitter() was called with a non-null argument without the required removeListeners method.

I am using the Microphone continuous async example in a React Native VoiceComponent. At the top I am ignoring these logs on the VoiceComponent:

import { LogBox } from 'react-native';
LogBox.ignoreLogs(['new NativeEventEmitter', 'Require cycle']); 

When I call the VoiceComponent within another component in the return object, I get these warnings. The error is triggered when I navigate to the component with the VoiceComponent

LogBox.ignoreAllLogs(); as well does not work.