How do I open a PDF I've created with the device's PDF viewer?

I’ve been trying to get this to work for days with no avail. I ran into an older post that suggested a hacky way to save it to the CameraRoll and then open from there and that works as I want. Here’s what I’ve made so far:

let result = await Print.printToFileAsync({
        html: html
let promise = await CameraRoll.saveToCameraRoll(result.uri, 'photo');

However, ideally I’d like to not pollute the user’s DCIM folder with PDFs. Any suggestions?

If I skip the CameraRoll.saveToCameraRoll, I get an error from Linking

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.