joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.84k stars 785 forks source link

Wiki iOS-API confusing description #420

Open Luk-z opened 5 years ago

Luk-z commented 5 years ago

Recently i was consulting the Wiki ios API at https://github.com/joltup/rn-fetch-blob/wiki/iOS-API and i think the two methods description are inverted.

I'm testing on ios simulator iphone Xcode 10.3 (10G8) and i'm downloading a pdf file.

When i put in my code RNFetchBlob.ios.previewDocument(res.path()) it is opening the menu, but the wiki says "Open a file in the default document viewer of iOS".

When i put in my code RNFetchBlob.ios.openDocument(res.path()) it previews the document with the default document viewer of iOS, but the wiki says "Show options menu for interact with the file".

Are the two methods description exchanged?

CoreyBovalina commented 5 years ago

does the same thing for me