In this article, I will show you how to save an image from a remote url to your device using react-native.
TL/DR Find the full code in this github...
For further actions, you may consider blocking this person and/or reporting abuse
Wow, this is exactly what I had been looking for. Nonetheless, this tutorial series is awesome. Great use of Camera Roll from React Community package along with React Native fetch blob in order to save the image from a URL to the app. The stepwise guidance on setting up and integration along with coding implementations is easy to grasp from a beginner's point of view.
Thank you Chris
Nice tut, straight to point...I have been trying to create a video gallery using RNFetchBlob to fetch videos from my device video folder to my react native app, but have not been able to achieve that...I am new to react native, please can you do tutorial on that. Thanks a lot.
Hey Benjamin, try this and see if you can modify it to your need youtube.com/watch?v=QwhrAjp4X_Y
Hi majiyd.
I have an error, when I try save image using CameraRoll.save(...) in my xiaomi device this work, but when try save in another device save the image but with error, I can't open the image and other thing, when try in a different route dont work the process to save using the library... please do you can help me to resolve this issue!
Thanks.!
I'd love to help you but i need more details
thanks a lot
Real simple and concise. Nice one, majiyd.
Thanks Chief!
What do you do if you don't know the extension of the file you're downloading?
I'm not exactly sure but I think png would work just fine regardless. Or whichever extension you choose to use.
this helped me a lot thanks
I'm glad it did
Went through several articles and SO posts until I finally found this one that got it working instantly on iOS and Android. Thanks for the write-up!
Hi, great Article... I have the next problem. I call to my API and I return inside the response return base64 encode of image.
Do you have some example for this problem?
Thanks, Alexandro. I'm sorry for the late response I did not get notified earlier.
Are you still having this problem?
You can use something like
RNFetchBlob.fetch('GET', 'example.com/images/img1.png',)
.then((res) => {
let base64Str = res.base64()
})