npm.io
0.0.1-beta.4 • Published 6 years ago

@coolwallets/transport-react-native-ble

Licence
Apache-2.0
Version
0.0.1-beta.4
Deps
3
Size
49 kB
Vulns
0
Weekly
0
Stars
37

CoolWalletS React-Native-ble Transport

If you're building a React-Native App with CoolWalletS, this is the one you need to use as transport in other api.

Install

npm i @coolwallets/transport-react-native-ble

Usage

import RNBleTransport from '@coolwallets/transport-react-native-ble'
const transport =  RNBleTransport.connect(deviceOrId);

// use transport in other package:
import CoolWallet from '@coolwallets/wallet'
const wallet = new CoolWallet(transport, appPrivateKey, appId)