I'm downloading PDF files using Expo.FileSystem.downloadAsync. How can I open it? I found solution to eject EXPO, and then using native... But this is not very suitable for my decision. How can I open this files? Maby with some other app, that device storing for pdf files? I will consider any suggestions. Is it possible to somehow convert pdf files to another format, if it is convenient then to open them in the react-native app? I have not been able to find a solution to this problem for a week... I found https://facebook.github.io/react-native/docs/linking , but it's working only online, if i got it right, but I need to open this files even offline, without internet connection. And I cant connect it now. It's needed to make eject too? I would be very grateful for the help.
To run the app, install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, use the built-in QR code scanner of the Camera app.
expo-file-system provides access to a file system stored locally on the device. Within Expo Go, each project has a separate file system and has no access to the file system of other Expo projects.
In our React Native project, we have a couple of folders and files. .expo — this folder contains some configuration for expo. You don’t need to touch that folder assets — this folder holds some images in this project like an icon in your app. This is the folder which we use to hold all assets of our project like images, videos, fonts, etc.
Getting started with React Native will help you to know more about the way you can make a React Native project. We are going to use react-native init to make our React Native App. Assuming that you have node installed, you can use npm to install the react-native-cli command line utility.
To save a file on a publicly accessible folder in the device’s internal storage, you need to do a bit more. You need to install two libraries to follow along here. These are expo libraries, but you can use them in plain react-native apps as well. Just be sure to follow the installation instructions for “bare” or plain react-native apps.
Why Native File Viewer? Here native file viewer means we are not going to view the file in our application instead we will pick the file from file picker and will pass the file URL to FileViewer component provided by react-native-file-viewer, this component will trigger the native iOS/Android file viewer to open the file.
There is simply no such possibility at the moment ... I disable expo and used native libraries
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With