Reputation: 31
When I open my app, Realm works fine, it opens an instance and I logged an area to return a console.log('Realm is opened') to check if the realm is being instantiated.
However, when I try to use React Native's remote js debugger, the app gets stuck at the login screen and says Realm is not defined.
When I debug the issue, it fails to do Realm.open(my object schema) and gives the error stated above.
I'm wondering if maybe it's an issue with chrome debugger's compatibility with realm or a separate issue entirely.
Upvotes: 3
Views: 720
Reputation: 101
I am also facing this issue. I realized that it is not due to chrome debugger by doing the following.
When using flipper I did not get the Realm is undefined but the instance of the realm returned an empty object i.e "{}"
My react-native version 0.64.2 realm version 10.6.1
The same code base works for the previous rn version. This is not a solution but maybe this will help in reproducing and resolving
Upvotes: 1