-
Notifications
You must be signed in to change notification settings - Fork 288
Can I use this package in react-native mobile app ? #367
Comments
Greetings! What have you tried? |
I have tried with below steps: (1) I have create new project in react-native with below command: (2) Then install this package with below command: (3) import this package: // In react-native latest version, below syntax to import package // Above import syntax gives error, so i have tried to import as per this package documentation. (4) Run react-native app: Issue is that every time I am facing error, and not able to run sample app. error: bundling failed: Error: Unable to resolve module Let me know if you still any question from myside to understand my issue. |
@nileshprajapati007444 as it stands today, you cannot run One of the main issues, is that the What I would recommend would be to run a thin web-server, using a technology like express, which executes |
@nileshprajapati007444 and @callmehiphop - I'm closing out this issue since the feature request feels like it's well covered in googleapis/google-cloud-node#2933. Let me know if that seems wrong. |
@bcoe - does your comment above hold true for full context: I'm trying to create an electron app that uses this api to process audio recorded locally. I've wrapped create-react-app in electron, but can't seem to get the code (located in a react component): // read credentials from an environment variable
const keysEnvVar = process.env.REACT_APP_GOOGLE_CREDENTIALS;
// parse those credentials as JSON (have verified that this is working correctly)
const credentialKeys = JSON.parse(keysEnvVar);
// app crashes on this line
const client = new speech.SpeechClient({ credentials: credentialKeys }); |
I am creating voice chat app in react-native. I want to translate speech to text using google.
Can I use this package in react-native ? Is it supported ?
Please explain me in detail.
Thanks in advance.
The text was updated successfully, but these errors were encountered: