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

Error: Cannot create URL for blob #284

Closed
s-kuniyoshi opened this issue Apr 26, 2021 · 3 comments
Closed

Error: Cannot create URL for blob #284

s-kuniyoshi opened this issue Apr 26, 2021 · 3 comments

Comments

@s-kuniyoshi
Copy link

Hi!
When I use URl.createObjectUrl at RN for web, raised title error.
Maybe this issue similer by #223.
Are anyone bumped this error?

I know that this library is not supported RN for web.
However, it would be wonderful if this problem could be solved with a little bit trick.

@charpeni
Copy link
Owner

That's a good point, NativeModules aren't available with React Native Web.

I would say you probably don't need this polyfill on web since URL and URLSearchParams are already there, right?

@ghost
Copy link

ghost commented Jul 29, 2021

I'm also facing the same issue. I get [Error: Cannot create URL for blob!] error when trying to run URL.createObjectURL(blob);. I'm testing in Android 10 device.

My package.json:

"react-native-url-polyfill": "^1.3.0",
"react": "17.0.1",
"react-native": "0.64.2",

@charpeni
Copy link
Owner

Closing this issue in favor of #366.

@gretchelin Have you configured your Android app schema to accept blob? You can have a look at this pull request for an example: 5985d7e.

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

2 participants