Skip to content
wkh237 edited this page Aug 25, 2016 · 3 revisions

This document contains unfinished functions, you can't use them in any release

After 0.10.0, our library supports JSON stream, it's a wrapper of Oboe which created by @jimhigson. Generally you can create a JSON stream from a file or HTTP(S) address.

Usage

const JSONStream = RNFetchBlob.JSONStream

// from remote JSON 
JSONStream('http://example.com/large-json.json')
.node('*', () => { /* handle node */ })
.fail((err) => { /* handling error */ })

// from file system
JSONStream(RNFetchBlob.wrap('/path/to/a/json/file.json'))
.node('*', () => { /* handle node */ })
.fail((err) => { /* handling error */ })

TODO

Clone this wiki locally