How to use @ledgerhq/react-native-hid - 4 common examples

To help you get started, we’ve selected a few @ledgerhq/react-native-hid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LedgerHQ / ledger-live-mobile / src / logic / hw / index.js View on Github external
openHandlers.push(id => {
  if (id.startsWith("usb|")) {
    const json = JSON.parse(id.slice(4));
    // $FlowFixMe: we should have concept of id in HIDTransport
    return HIDTransport.open(json);
  }
  return null;
});
observables.push(hidObservable);
github LedgerHQ / ledger-live-mobile / src / live-common-setup.js View on Github external
  discovery: Observable.create(o => HIDTransport.listen(o)).pipe(
    map(({ type, descriptor, deviceModel }) => {
github LedgerHQ / ledger-live-mobile / src / logic / hw / index.js View on Github external
const hidObservable = Observable.create(o => HIDTransport.listen(o)).pipe(
  map(({ type, descriptor }) => ({
github LedgerHQ / ledger-live-mobile / src / live-common-setup.js View on Github external
      return retry(() => HIDTransport.open(devicePath), { maxRetry: 2 });
    }

@ledgerhq/react-native-hid

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

MIT
Latest version published 2 months ago

Package Health Score

85 / 100
Full package analysis

Popular @ledgerhq/react-native-hid functions