Optional
realmConfig: ConfigurationRealm.Configuration used to open the Realm
An object containing a RealmProvider
component, and useRealm
, useQuery
and useObject
hooks
class Task extends Realm.Object {
...
static schema = {
name: 'Task',
primaryKey: '_id',
properties: {
...
},
};
}
const {useRealm, useQuery, useObject, RealmProvider} = createRealmContext({schema: [Task]});
Generated using TypeDoc
Creates Realm React hooks and Provider component for a given Realm configuration