React Native wrapper for Aries Askar
npm install @hyperledger/aries-askar-react-nativeWrapper for React Native around Aries Askar
This module uses the new React Native Turbo Modules. These are faster than the
previous Native Modules, and can be completely synchronous. A React Native
version of >= 0.66.0 is required for this package to work.
``sh`
yarn add @hyperledger/aries-askar-react-native
You can import all types and classes from the @hyperledger/aries-askar-react-native library:
`typescript
import { Key, KeyAlgs } from '@hyperledger/aries-askar-react-native'
const seed = Uint8Array.from(Buffer.from('testseed000000000000000000000001'))
const key = Key.fromSeed({ algorithm: KeyAlgs.Bls12381G1, seed })
`
> Note: If you want to use this library in a cross-platform environment you need to import methods from the @hyperledger/aries-askar-shared package instead. This is a platform independent package that allows to register the native bindings. The @hyperledger/aries-askar-react-native` package uses this package under the hood. See the Aries Askar Shared README for documentation on how to use this package.
The JavaScript wrapper is versioned independently from the native bindings. The following table shows the compatibility between the different versions:
| Aries Askar | JavaScript Wrapper |
| ----------- | ------------------ |
| v0.2.9 | v0.1.0, v0.1.1 |
| v0.3.1 | v0.2.0 |