'RealmObject cannot be called as a function - Only Android

Getting RealmObject configuration issue when using @realm/react. It happens when using one of the functions, const {useRealm, useQuery, useObject} = TaskContext;

This issue is observed only on android, for iOS, it works well. I referred to the document template as specified in the link.

There is a similar issue but the approach used here is different. https://github.com/realm/realm-js/issues/3876

Android failure



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source