Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use in React Native? #9

Open
thecoorum opened this issue Dec 4, 2024 · 7 comments
Open

Is it possible to use in React Native? #9

thecoorum opened this issue Dec 4, 2024 · 7 comments
Assignees

Comments

@thecoorum
Copy link

Hey! I was just wondering is it possible to use the React package in React Native?

@omegabyte
Copy link

+1

currently is not possible due to charpeni/react-native-url-polyfill#284

@thorwebdev thorwebdev self-assigned this Feb 10, 2025
@jotaseme
Copy link

any updates on this? I am facing the exact same issue. Thanks!

@thorwebdev
Copy link
Member

We're currently looking into various ways to support React Native. We will keep you posted here. To help us, could y'all add some more information on your use cases and setup please? E.g. are you looking to use this within a webview, are you building with Expo etc. This will help us build the right solution. Thank you!

@jotaseme
Copy link

In my case, I am building a react native (expo) app. When I was about to try the package in a ios simulator I faces this error: Error: Cannot create URL for blob.

@farzd
Copy link

farzd commented Feb 27, 2025

@thorwebdev Expo app,
Cannot create URL for blob is actually coming from the conversation hook [and not when you create a signed url - this is working fine with fetch]

import { useConversation } from '@11labs/react';

  const conversation = useConversation({
    onConnect: () => console.log('Connected'),
    onDisconnect: () => console.log('Disconnected'),
    onMessage: (message) => console.log('Message:', message),
    onError: (error) => console.error('Error:', error),
  });
Image

@thorwebdev
Copy link
Member

thorwebdev commented Mar 6, 2025

Thanks y'all for your patience. One approach for cross-platform conversational AI agents with React Native is using Expo DOM components.

I'm working on a detailed cookbook for this, but if you're keen, you can dig into the WIP example here

Can see a demo here: https://x.com/thorwebdev/status/1897698104411144470

@thorwebdev
Copy link
Member

We have added a cookbook for the Expo DOM components approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants