how can I download files (pdf,word,etc...) or image using react native, I want to download files from json api.
I want to download files from json api
Related
I am trying to create and download react-native component as pdf file
You can use this library
react-native-html-to-pdf you can create pdf file
react-native-pdf you can display pdf file
I'm developing a React Native app. I'm using Camera-Expo.
When I test it and take a photo on Web, it is saved as 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg....' and it can be saved on cloudinary.com
Though when I test it on my phone using Expo, the photo is saved as 'file:///data/user/0/host.exp.exponent/cache/Experie.....' and it is not saved on cloudinary.com
How can I save the photos I make by phone on cloudinary?
Use ImageManipulator from Expo to change the captured file to base64 and then you can upload it on cloudinary
I am building and mobile app for android using react native, I have json array object and I want to download this data as CSV file on button clicked, I have checked many of existing packages but all for web applications not mobile applications. is there anyway or trick to do that or is there and new packages i am missing. help me please
It looks like react-native-fs (https://www.npmjs.com/package/react-native-fs) supports IOS and Android Devices. This allows you to create Files on the Device, and write any File content.
I am pretty new to react-native (app development as such).
I want to download and save a pdf file in user's device in react-native? react-native-fs and rn-fetch-blob showed up as popular options.
I am using redux-saga in my project and axios to fetch json data.
I am able to get a blob object of the pdf file using axios.
So, how can i achieve this downloading and saving the file in the device? Can i use axios plus some library to get the file from blob object or should i be using either react-native-fs or rn-fetch-blob?
Any suggestions would help!
I have a PDF stored in my assets folder in my react native projects. I would like to give the user the ability to download this PDF to their device. I currently have it displaying on screen, but I can't figure out how to download the asset to the users device. I've seen plenty of examples of how to download items using a URL but nothing for local assets. The application is being build out in React Native for both iOS and Android.