How to use the @ledgerhq/react-native-hid.open function in @ledgerhq/react-native-hid

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