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 the document template as specified in the link.