`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
Good evening! I ask you for help, I have been suffering for a very long time with this problem. I am trying to run test code from your repository and I get this error:

You say that this is just a warning, but the sound cannot be recorded. Thank you for your time
I have the same problem too.
I have the same problem too.
Didn't find a solution? It's just that even the example from the repository does not work for me.
Adding the methods to the file removes the error! Not sure if this is the best fix!
https://github.com/software-mansion/react-native-reanimated/pull/2316/files
+1
same!
same... any updates ?
Hey! Try this, probably it wil help you
useEffect(() => { Voice.onSpeechStart = onSpeechStart; Voice.onSpeechEnd = onSpeechEnd; Voice.onSpeechResults = onSpeechResults; Voice.onSpeechPartialResults = onSpeechPartialResults;
return () => {
Voice.destroy().then(Voice.removeAllListeners);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const onSpeechStart = e => { console.log('onSpeechStart: ', e); setMicroIsLoading(true); };
const onSpeechEnd = e => { console.log('onSpeechEnd: ', e); setMicroIsLoading(false); };
const onSpeechResults = e => { console.log('onSpeechResults: ', e); setResult(e.value);
if (typeof e.value !== undefined) {
translateDispatch(setSourceText(e.value[0]));
}
};
const onSpeechPartialResults = e => { console.log('onSpeechPartialResults: ', e); setPartResult(e.value); };
const _startRecognizing = async () => { if (await requestMicroPermission()) { try { setMicroIsLoading(true); await Voice.start(SourceLang); } catch (e) { console.error(e); } } else { console.log('micro permissions error'); } };
const _stopRecognizing = async () => { try { setMicroIsLoading(false); await Voice.stop(); } catch (e) { console.error(e); } };
Adding the methods to the file removes the error! Not sure if this is the best fix!
https://github.com/software-mansion/react-native-reanimated/pull/2316/files
I don't use React Native Reanimated and I still get the warning. What to do? Is this a warning that doesn't change anything or do I need to fix this?
Adding the methods to the file removes the error! Not sure if this is the best fix! https://github.com/software-mansion/react-native-reanimated/pull/2316/files
I don't use React Native Reanimated and I still get the warning. What to do? Is this a warning that doesn't change anything or do I need to fix this?
You can add LogBox.ignoreLogs(['new NativeEventEmitter()']); inside your component and don`t worry anymore