Open hanumant-shegade-aera opened 4 years ago
This is not a React Native project. I am also working on a React Native project and wanted to use this project. Had to build a native module. More info can be found here: https://reactnative.dev/docs/native-modules-ios https://reactnative.dev/docs/native-modules-android
Hope this helps.
I have tried with following steps:
npm install --save @google-cloud/speech
react-native link @google-cloud/speech
I manually added "google" folder and "googleapis.podspec" bellow the project file
Then added pod 'googleapis', :path => '.' in Podfile of react native iOS project
Changed file names as per https://github.com/GoogleCloudPlatform/ios-docs-samples/blob/master/speech/Swift/Speech-gRPC-Streaming/BUILDFIXES
imported files in AppDelegate.h
import <googleapis/CloudSpeech.pbobjc.h>
import <googleapis/CloudSpeech.pbrpc.h>
But "'googleapis/CloudSpeech.pbobjc.h' file not found" error occurs.