@ledgerhq/react-native-hid
TypeScript icon, indicating that this package has built-in type declarations

6.29.0 • Public • Published

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-transport-u2f

Allows to communicate with Ledger Hardware Wallets.

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


Are you adding Ledger support to your software wallet?

You may be using this package to open a USB connection between your mobile application and the device.

For a smooth and quick integration:

  • See the developers’ documentation on the Developer Portal and
  • Go on Discord to chat with developer support and the developer community.

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

Install

npm i @ledgerhq/react-native-hid

DownloadsWeekly Downloads

723

Version

6.29.0

License

Apache-2.0

Unpacked Size

76.6 kB

Total Files

22

Last publish

Collaborators

  • chrisd-ledger
  • gbrahm-ledger
  • sergii-shkolin
  • yogh
  • haammar-ledger
  • kvn-ledger
  • ofreyssinet
  • jelbaz-ledger
  • achabrolin-ledger
  • gre
  • btchip
  • meriadec
  • flocks
  • juan-cortes
  • val_pinkman
  • iammorrow
  • phenry-ledger
  • jdecussy-ledger
  • junsugiura
  • hzheng_ledger