Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

iOS API

wkh237 edited this page Oct 16, 2016 · 15 revisions

RNFetchBlob.ios

ios.previewDocument(path:string)

0.10.0

Open a file in UIDocumentInteractionController, this is the default document viewer of iOS, supports several kinds of files. On Android, there's an similar method android.actionViewIntent.

path:string

This is a required field, the path to the document. The path should NOT contains any scheme prefix.

RNFetchBlob.ios.previewDocument(pathToLocalFile)

ios.openDocument(path:string)

0.10.0

Show options menu for interact with the file.

path:string

This is a required field, the path to the document. The path should NOT contains any scheme prefix.

RNFetchBlob.ios.openDocument(pathToLocalFile)