-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot read property 'Blob' of undefine #1
Comments
@shirleycharlin , may I know what version If you're going to use
You can also check out the working example code rn-firebase-storage-upload-sample But keep in mind the alpha version may be very unstable |
I just simply did a npm install react-native-fetch-blob Earlier this morning (Singapore Time)
|
If you're going to use Web API polyfills (e.g. Blob, XMLHttpRequest) you will have to use To install latest alpha release $ npm install --save react-native-fetch-blob@alpha or you want to install a specific version $ npm install --save react-native-fetch-blob@0.8.0-alpha.6 |
Hi right now I am encountering issue with Fetch blob not able to register and can I know what is the RNFetchBlob trying to wrap here? the path directory or just the source? var blob = new Blob(RNFetchBlob.wrap(source.uri),{ type : 'image/jpeg;BASE64'}) |
Refer to wkh237/react-native-fetch-blob#44 |
Problem filed have solved. |
Hi I was prompted error message:
Here is my code:
const ImagePicker = require('react-native-image-picker')
//blob
import RNFetchBlob from 'react-native-fetch-blob'
const fs = RNFetchBlob.fs
const Blob = RNFetchBlob.polyfill.Blob
//window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest
//window.Blob = Blob
const dirs = RNFetchBlob.fs.dirs
const prefix = ((Platform.OS === 'android') ? 'file://' : '')
//inside the component function
fileToUpload () {
const options = {
quality: 1.0,
maxWidth: 500,
maxHeight: 500,
storageOptions: {
skipBackup: true,
path: 'images'
}
}
}
The text was updated successfully, but these errors were encountered: