-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Blob.slice Parameter contentType does not exists in iOS and Android. #38058
Comments
|
i upgraded to 0.71.11. |
System: |
I can confirm this. Would you be interested in putting together a fix @trashcoder as a pull request? It looks reasonably straightforward between updating Blob#slice and adding a test to confirm the parameter is passed. I recon we could get this in today. |
I could try. But i never made a pull request before and i'm not familiar with the react-native code. |
ok, i made a change to the parameters. But i don't know how to test it. |
Great! You're not far off now, I'd recommend:
|
Description
In react natives implementation of blob.slice the contentType parameter is missing:
https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice
React Native Version
0.71.6
Output of
npx react-native info
error: unknown command 'info'
(Did you mean init?)
Steps to reproduce
Open a new react native project and add a line with a blob.slice command. There is no contentType parameter. And so you will not see a value for .type on Android and iOS on a sliced blob. On React Native Web slicing works as expected.
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/kS7da4tSk
The text was updated successfully, but these errors were encountered: