@ledgerhq/react-native-hid

Ledger Hardware Wallet Web implementation of the communication layer, using U2F api

Stats

StarsIssuesVersionUpdatedCreatedSize
@ledgerhq/react-native-hid
5081066.23.04 days ago4 years agoMinified + gzip package size for @ledgerhq/react-native-hid in KB

Readme

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 Promise<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 Promise<Array<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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.