I have a pdf that I would like to display to a user once a button is clicked. I have been successful at showing the user a pdf from the like so:
<TouchableOpacity onPress={() => Linking.openURL('www.somesite.com/manual.pdf')}>
<Text>See pdf</Text>
</TouchableOpacity>
This was great as it opened up a native pdf reader and downloaded the content accordingly. I would like to achieve a similar result with a local application pdf file but I don't know how to achieve a similar effect using the openUrl api.
I have seen answers an answer at How to open local PDF file in WebView in Android? but it seems like this solutions creates a webView component that has to be styled and laid out as an in app component. Its not what I want. I just want a native pdf viewer to read the local file content and do its thing.