@portal-hq/mobile-key-values
package contains a storage adapter intended for use with the @portal-hq/core
package.
This storage adapter allows end users to save MPC shares to their local device keychain using react-native-mmkv
.
Note: This storage provider is only supported on iOS devices, so should not be used as your sole backup storage adapter unless you are explicitly releasing an iOS-only app.
Basic usage
Install the package in your React Native project.
- yarn
- npm
Import the package into the component where you initialize the Portal class
Register your storage adapter and initialize the Portal class
Dependency linking
Because this package uses thereact-native-mmkv
package (which contains native modules) there is some additional linking required to make it work with your React Native project.
Explicitly install the react-native-mmkv
package in your project.
- yarn
- npm