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

Utils API

wkh237 edited this page Sep 29, 2016 · 3 revisions

RNFetchBlob.wrap(path:string):string

Simply prepend RNFetchBlob-file:// to a path, this make the file path becomes recognizable to native fetch method.

RNFetchBlob.session(name:string):RNFetchBlobSession

Session API helps managing cached files, the following function call, will try to return an existing session object with the given name, if it does not exist, create one.

RNFetchBlob.session('mysession')

see Sessions API for more usages.

RNFetchBlob.base64

0.4.2

A helper class simply uses base-64@mathiasbynens for decode and encode BASE64 data.

RNFetchBlob.base64.encode(data)
RNFetchBlob.base64.decode(data)