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
* [Parameters](#parameters)
* [Examples](#examples)
* [exchange](#exchange)
* [Parameters](#parameters-1)
* [close](#close)
* [isSupported](#issupported)
* [list](#list)
* [listen](#listen)
* [Parameters](#parameters-2)
* [open](#open)
* [Parameters](#parameters-3)
HIDTransport
Extends TransportLedger's React Native HID Transport implementation
Parameters
nativeId
numberproductId
Examples
import TransportHID from "@ledgerhq/react-native-hid";
...
TransportHID.create().then(transport => ...)
exchange
Parameters
apdu
any input value
Returns Promise\ Promise of apdu response
close
Close the transportReturns any Promise
isSupported
Check if the transport is supported (basically true on Android)Returns Promise<boolean>
list
List currently connected devices.Returns Promise<Array\> Promise of devices
listen
Listen to ledger devices eventsParameters
observer
any
Returns any
open
Open a the transport with a Ledger deviceParameters
deviceObj
DeviceObj