@hyperledger/indy-vdr-react-native
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Indy VDR React Native

Wrapper for React Native around indy-vdr

Requirements

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.

Installation

yarn add @hyperledger/indy-vdr-react-native

Usage

You can import all types and classes from the @hyperledger/indy-vdr-react-native library:

import { PoolCreate, GetSchemaRequest } from '@hyperledger/indy-vdr-react-native'

const pool = new PoolCreate({
  parameters: {
    transactions: <TRANSACTION_OBJECT>
  }
})

const getSchemaRequest = new GetSchemaRequest({
  schemaId: 'J6nTnUo3YLayzc2GUUctb1:2:MyName:1.0',
})

const schemaResponse = await pool.submitRequest(getSchemaRequest)

Note: If you want to use this library in a cross-platform environment you need to import methods from the @hyperledger/indy-vdr-shared package instead. This is a platform independent package that allows to register the native bindings. The @hyperledger/indy-vdr-react-native package uses this package under the hood. See the Indy VDR Shared README for documentation on how to use this package.

Version Compatibility

The JavaScript wrapper is versioned independently from the native bindings. The following table shows the compatibility between the different versions:

Indy VDR JavaScript Wrapper
v0.4.0-dev.16 v0.1.0
v0.4.1 v0.2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @hyperledger/indy-vdr-react-native

Weekly Downloads

202

Version

0.2.2

License

Apache-2.0

Unpacked Size

129 kB

Total Files

31

Last publish

Collaborators

  • peter.somogyvari
  • hyperledger-ghci
  • hyperledger-lf