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.
Related
I have a scenario where when I click on preview image I want to add download option to that image, and to be able to work on both IOS/Android.
Is there any package or library that provide this ? Or is there another way to do this
For expo app, on iOS you can save it to local storage (expo fileSystem), and then invoke "Sharing" api method (well documented on rn docs). For android you could use StorageAccessFramework from expo to create file, and then save it using expo fileSystem writeAsStringAsync.
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.
I want to download images from server and use them in application.
Like many games on mobile do.
I also want that these files can not be seen in user's gallery and they can not delete it manually in React Native App
react-native-fs package can be used to download images from server and use them in your application.
Currently I am using File picker plugin(https://github.com/Studyxnet/FilePicker-Plugin-for-Xamarin-and-Windows) to browse and attach files in my application.
Its an cross platform plugin to upload documents.
but in this plugin when we want to upload documents in IOS we can upload documents using ICloud only. I want to upload documents without Icloud as we are doing in android.
Can anyone help me to upload documents in Xamarin forms IOS without using ICloud?
There is no way to browse files like android in iOS