I don't want to use RN libraries to create a pdf viewer, I'd like to click on a file icon and be asked in which installed application would I like to open the file.
Is there any library that allows me that?
I have used rn-fetch-blob in my project. After that, it's easy as doing;
Android
const android = RNFetchBlob.android;
android.actionViewIntent(path, 'application/pdf');
iOS
RNFetchBlob.ios.openDocument(path);
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