I am using @realm/react which uses useRealm() a react hook instead of Realm.open
How do I add encryption using Realm when I do not use Realm.open at all?
This is official guide for adding encryption.
I am using @realm/react which uses useRealm() a react hook instead of Realm.open
How do I add encryption using Realm when I do not use Realm.open at all?
This is official guide for adding encryption.
@Milkshake encryptionKey
is a property of the realm configuration. With @realm/react
you can configure this to your realm in two ways:
createRealmProvider
createRealmProvider({schema:[...], encryptionKey:...})
const Root = () => {
return (<RealmProvider encryptionKey={...}>
<App/>
</RealmProvider>)
}
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.