I’ve been stymied why I cannot get my app to recognize my wrapper function for Realm.write()
.
Here is a gist that covers what code is involved in the execution. My openDb()
wrapper appears to work,
name: "Brand"
properties:
brandName: "string"
color: "string"
icon: "string"
textColor: "string"
But when I try to write to the db I get
ExceptionsManager.js:76 TypeError: _realm.default.write is not a function
This is my first attempt to actually incorporate Realm into our existing app. This Realm demo has a quick expected turnaround (next 24hrs). So any help is most appreciated.
UPDATE: After messing around with the API calls, I imported realm directly into my App.js to test it. I found that not only was write()
failing, but the isClosed
boolean registered as undefined
.
When I logged the call, console.log('realm is closed?', Realm.isclosed);
, it returned realm is closed? undefined
. So, still don’t know what’s going on here.