'react native app is crashing with no logs when uploading image on ios
when i try to use firebase uploadBytes on android it works fin but on ios whenever the video file is bigger than 2 mb the application crashes with no logs i tried using uploadBytesResumable and even tried to downgrade my firebase version to version 8 and no solution yet
const fetchImage = await fetch(localUri);
const imageBlob = await fetchImage.blob();
const storage = getStorage();
const upload = ref(storage, 'path_to_sotrage');
const uploadTask = await uploadBytesResumable(upload, imageBlob);
return await getDownloadURL(uploadTask.ref);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|