Problems displaying preview on iOS
ItsNoHax opened this issue · 3 comments
ItsNoHax commented
ItsNoHax commented
Making some progress, first thing I found is that the image has to be directly in the root directory of /Documents, I tried to do /Documents/attachments/ and it wouldn't load.
Problem I'm running into now is that I need to open it twice? The first doesn't preview the image any subsequent times it will work perfectly.
ItsNoHax commented
Okay got it working, turns out I was awaiting RNFS.downloadFile instead of RNFS.downloadFile.promise
Thanks again for this nice library :)
bhoomesh950 commented
@ItsNoHax i am getting same problem can you help me https://github.com/vinzscam/react-native-file-viewer/issues/44