I have a react-native app which opens a PDF document using Linking
as shown below:
const handlePress = () => {
Linking.openURL(
"https://link/to/file.pdf"
);
};
The problem with the above code is that it opens the web browser and downloads the file. Isn't there any way through which I can open the file via the default PDF Viewer of the device?
You can download the PDF with rn-fetch-blob to your phone storage and open it with default PDF viewer like below: