Looks good. I wonder if it's possible to polyfill the buffer logic rather than forking pouchdb to sort the attachment issue. Otherwise, might be worth putting together a PR for a new option to the PouchDB repo for forcing base64 when buffers are not supported/available.
I've tried rn-nodeify to polyfill Buffer but it didn't solve the issue.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.