-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement Blob and other polyfills #44
Comments
Related to facebook/react-native#8684 |
merged into |
A working example base on https://github.com/wkh237/rn-firebase-storage-upload-sample |
test case reference https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/ |
Awesome work. I've quickly tested out uploading a file to firebase on 0.8.0-alpha.5 but I did have an issue.
I realise this is alpha so there is no point testing it just yet. Just wanted to say I"m really happy your tackling an important problem and am looking forward to using your lib :) |
@dcworldwide , thank you for your information ! I think you might try removing the prefix |
Ok I'll try that, thanks 👍 |
@dcworldwide hey I have also encounter the same issue right now. Can I know if you have resolved it? :) |
right now I am encountering with these error message: Blob verbose: Blob constructor called mime image/jpeg;BASE64 type string length 34 and I am using 0.8.0-alpha.6 |
@shirleycharlin , I think that's because you're using an object as first argument of Blob constructor. please refer to the document |
I have resolve it. I actually uses the syntax from Mr @dcworldwide . if you don't mind I would like to copy and paste these code of mine later. |
@shirleycharlin , great to hear that 👍 Please feel free to leave any comment or message. |
According to #37 advice from @vaibhawc , perhaps we should consider implement
Blob
class on RN since we already have network and fs APIs. This may let some JS libraries that depends on web API becomes available in RN. At least we can try to make firebase.storage work.Work in progress document
Spec Reference
These are polyfills that planned to be implemented so far
This feature will develop on branch 0.8.0
The text was updated successfully, but these errors were encountered: