vinzscam/react-native-file-viewer

File opens with just file name.

divyanshunegi opened this issue · 4 comments

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

Any Update on that? I am using iOS 11
iPhone 11 - 2020-05-01 at 19 39 23

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?

@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.

I see, thanks for sharing.
I will make sure that the library handles this automatically.