huynqbibabo / react-native-google-cloud-speech-to-text

MIT License
17 stars 4 forks source link

Have a problem with React Native Module #2

Open Symfomany opened 3 years ago

Symfomany commented 3 years ago

I have this error on iOS after clear caches and dependencies when i launch in my app "GCSpeechToText.onVoiceStart(onVoiceStart);"

This is my error:

[Tue Jul 20 2021 07:09:15.990] LOG [TypeError: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)]

My package.json: "react-native-google-cloud-speech-to-text": "^0.5.4", "react": "17.0.1", "react-dom": "16.13.1", "react-native": "^0.63.2",

My Podfile:

pod 'react-native-google-cloud-speech-to-text', :path => '../node_modules/react-native-google-cloud-speech-to-text'

Do you have same error ?

Capture d’écran 2021-07-20 à 07 11 53
HeLinChooi commented 3 years ago

Hi, I think the author mentioned this package is not working on iOS.