Using this couchbase module with react-native Android provides a great API to get and put to the local couchbase-lite database. However, what I want to do is use a thumbnail attachment of a document as the URI for the source attribute of the Image component. Like this:
var imageURI = 'http://localhost:5984/demoapp/' + this.props.book.thumbnail
...
<Image source={{uri: imageURI}} \>
I've logged the uri and verified that it is properly constructed and also forwarded out the local database port to make sure the attachment was replicated from the source. Yet when the ListView of items renders it's missing the thumbnails. I've also tested the ListView with a web url for the images and it worked sometimes and other times not. Like with a couchdb attachment, yes; but with a cloudant attachment, no.
I'd imagine this has something to do with the http service that is used for the Image component in Android and the request headers or the response headers from the couchbase lite instance on the device. So far, I haven't found anything though.