Any possibility to preview a file(pdf,word,doc),once select from document picker module?
tried using webview, but it shows "error_access_denied".
How to read and preview file uri from document picker?
Related
whenever i am trying to get real path using react native document picker in ios platform i am getting wrong path.
such as
[Error: No such file 'file:///Users/krishna/Library/Developer/CoreSimulator/Devices/C37B4F69-052A-40FA-925C-984D4A3982BF/data/Containers/Data/Application/C837377B-E405-431B-8524-26B5A307506F/Documents/2E8A272D-A828-480E-B3E4-8BF6270BE0C9/file-sample_100kB.doc']
please give any solution
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 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'm development a app using appcelerator. I need display a url PDF inside this app but android webview dont show pdf.
I try for this pdf into google https://docs.google.com/viewer?url=http://xxx.pdf&embedded=true
But is instable, opening my webview android in white screen.
Somebody have a solution for open pdf into app android using appcelerator?
Thanks.
The Android Webview doesn't automatically load PDF files. You have to either use pdf.js and render it or use this module: https://github.com/SquirrelMobile/pdfview that will create a custom View to display PDF files
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.