I’m using the Expo SDK version 45 for iOS and Android
I recently installed the RNFetchBlob package to my app for downloading and opening files. Everything works great on iOS but I am running into a problem on Android. After saving a file to the downloads directory I am calling RNFetchBlob.android.actionViewIntent(res.path(), ‘image/jpeg’); Nothing happens and no error is thrown.
From researching the issue, I found the following potential solution: https://stackoverflow.com/questions/70630991/rnfetchblob-android-actionviewintent-does-not-working-on-android-11
According to the aforementioned link, I need to add the following to the AndroidManifest.xml file:
...
</application>
+ <queries>
+ <intent>
+ <action android:name="android.intent.action.VIEW" />
+ <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+ <data android:mimeType="*/*" />
+ </intent>
+ </queries>
</manifest>
The Expo documentation on editing the manifest file with a config plugin left me more confused than when I started. Can someone point me in the right direction for adding those lines to the AndroidManifest file with a config plugin?