open-index/open-npm huggingface dataset:
npm package: @particle/react-native-ble-setup-library
Description: React Native library for setting up BLE devices
Author: Particle Industries, inc
Latest version: 0.2.1

# `@particle/react-native-ble-setup-library`

React Native library for setting up BLE devices.

## Usage

The best way to see how this library is used is to check out the [`react-native-ble-setup-example` package](../react-native-ble-setup-example).

## Installation

```shell
npm install @particle/react-native-ble-setup-library --save
```
<!-- private-module-note-start -->

<!-- private-module-note-end -->

## API
<!-- api-docs-start -->
<a name="SetupContext"></a>

### SetupContext
React Context containing the BLE setup process

**Kind**: global constant  

* * *

<a name="useBLESetup"></a>

### useBLESetup ⇒ <code>SetupContextType</code>
Hook for using the SetupContext

**Kind**: global constant  
**Returns**: <code>SetupContextType</code> - Setup context  

* * *


<!-- api-docs-end -->

_NOTE: Unfortunately, docs have a nasty habit of falling out of date. When in doubt, check usage in [tests](./src/index.test.js)_

## License

Copyright &copy; 2022 Particle Industries, Inc. Released under the Apache 2.0 license. See [LICENSE](LICENSE) for details.
npm package: @particle/react-native-crypto
Description: React Native compatible crypto functions
Author: Particle Industries, inc
Latest version: 1.0.6

# `@particle/react-native-crypto`

React Native compatible crypto functions


## Installation

```shell
npm install @particle/react-native-crypto --save
```

_NOTE: `@particle/react-native-crypto` declares `react-native` and `@particle/device-constants` as a [`peerDependency`](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies) - this ensures your app only ever has one copy of those dependencies_


<!-- private-module-note-start -->

<!-- private-module-note-end -->

## API
<!-- api-docs-start -->
<a name="ReactNativeAes128Cipher"></a>

### ReactNativeAes128Cipher
A React Native class for an AES-128 cipher operating in ECB mode.

**Kind**: global class  

* * *

<a name="ReactNativeAes128Cipher+encryptBlock"></a>

#### reactNativeAes128Cipher.encryptBlock(block) ⇒ <code>Promise.&lt;Uint8Array&gt;</code>
Encrypt a single block of data.

**Kind**: instance method of [<code>ReactNativeAes128Cipher</code>](#ReactNativeAes128Cipher)  
**Returns**: <code>Promise.&lt;Uint8Array&gt;</code> - Ciphertext block.  

| Param | Type | Description |
| --- | --- | --- |
| block | <code>Uint8Array</code> | Plaintext block. The block must be 16 bytes long. |


* * *

<a name="ReactNativeEnv"></a>

### ReactNativeEnv
A React Native environment class.

**Kind**: global class  

* [ReactNativeEnv](#ReactNativeEnv)
    * [.createAes128Cipher(key)](#ReactNativeEnv+createAes128Cipher) ⇒ <code>Aes128Cipher</code>
    * [.getRandomBytes(size)](#ReactNativeEnv+getRandomBytes) ⇒ <code>Promise.&lt;Uint8Array&gt;</code>


* * *

<a name="ReactNativeEnv+createAes128Cipher"></a>

#### reactNativeEnv.createAes128Cipher(key) ⇒ <code>Aes128Cipher</code>
Create an AES-128 cipher operating in ECB mode.

**Kind**: instance method of [<code>ReactNativeEnv</code>](#ReactNativeEnv)  
**Returns**: <code>Aes128Cipher</code> - Cipher object.  

| Param | Type | Description |
| --- | --- | --- |
| key | <code>Uint8Array</code> | Encryption key. The key must be 16 bytes long. |


* * *

<a name="ReactNativeEnv+getRandomBytes"></a>

#### reactNativeEnv.getRandomBytes(size) ⇒ <code>Promise.&lt;Uint8Array&gt;</code>
Generate cryptographically strong random data.

**Kind**: instance method of [<code>ReactNativeEnv</code>](#ReactNativeEnv)  
**Returns**: <code>Promise.&lt;Uint8Array&gt;</code> - Random data.  

| Param | Type | Description |
| --- | --- | --- |
| size | <code>Number</code> | Number of bytes to generate. |


* * *


<!-- api-docs-end -->

_NOTE: Unfortunately, docs have a nasty habit of falling out of date. When in doubt, check usage in [tests](./src/index.test.js)_