JSON Stream (Oboe) - wkh237/react-native-fetch-blob GitHub Wiki
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 */ })
See Oboe.js