Open transfered file on Ionic React

I tried multiple things to make this work, this is my code :

I managed to get the file to donwload, but after adding the file-opener plugin following the tutorial mentioned here I started facing this build error : (building for android 10 device)

I’m starting to question myself if this is the proper way of downloading and opening a file from an URL, but if anyone can help me or has a better solution I would be very thankful