Utils API - wkh237/react-native-fetch-blob GitHub Wiki

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)