Numeric Production Mechanism
Miss any of our Open RFC calls?Watch the recordings here! »

@ledgerhq/react-native-hid

5.23.0 • Public • Published

Github, Ledger Devs Slack

@ledgerhq/hw-transport-u2f

Allows to communicate with Ledger Hardware Wallets.

[React Native] (HID) Android – Ledger's native implementation.

API

Table of Contents

HIDTransport

Extends Transport

Ledger's React Native HID Transport implementation

Parameters

Examples

import TransportHID from "@ledgerhq/react-native-hid";
...
TransportHID.create().then(transport => ...)

exchange

Parameters
  • apdu any input value

Returns any Promise of apdu response

close

Close the transport

Returns any Promise

isSupported

Check if the transport is supported (basically true on Android)

Returns Promise<boolean>

list

List currently connected devices.

Returns any Promise of devices

listen

Listen to ledger devices events

Parameters
  • observer any

Returns any

open

Open a the transport with a Ledger device

Parameters
  • deviceObj DeviceObj

Install

npm i @ledgerhq/react-native-hid

DownloadsWeekly Downloads

387

Version

5.23.0

License

Apache-2.0

Unpacked Size

78.8 kB

Total Files

19

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar