Not a full answer, but, when we had to allow viewing of PDF’s in our app, we took the easy way out and let the OS do it. We would request a randomized, public link to the PDF from our server, and then we would do the following to display it:
if (Platform.OS === 'ios') {
WebBrowser.dismissBrowser();
WebBrowser.openBrowserAsync(url);
} else {
IntentLauncher.startActivityAsync('android.intent.action.VIEW', {
type: 'application/pdf',
data: url,
});
}
Then the user gets all these great zoom, paging functions, and we don’t have to do a thing!
1 Like