React Native + Expo : save pdf/word doc from url and use Linking to Open the file in a different app

I've been using the default create-react-native-app and would like to continue to do so as long as I can without ejecting.

The feature I need for the app is to download a file to the app cache using FileSystem.downloadAsync which stores the file to the local cache or temp directory. Next I need to share that file with any program that can open it. For example. if I download a word doc then open the word viewer, or if it's a pdf then open a pdf viewer.

Is it possible to open an app that can view those files and still use default create-react-native-app?


you can use this exaple is based in documentation:

https://snack.expo.io/BkT-AkAvm