File opens with just file name.
divyanshunegi opened this issue · 4 comments
divyanshunegi commented
FileViewer.open method works fine if I opens a file for the first time, but if i open it again after some time it just shows the file name in the middle where content should be displayed
AboutReact commented
vinzscam commented
Are you sure this issue is not related to the code you use to download your file? Can you provide a snippet of your code?
AboutReact commented
@vinzscam Thank you for your reply. I have found the solution for that. The solution was to remove the 'file:///' prefix and then pass the URL.
vinzscam commented
I see, thanks for sharing.
I will make sure that the library handles this automatically.