open-index/open-npm huggingface dataset:
npm package: @kasterweb/get-native-array
Description: get-native-array fetches and converts android jsons to react-native jsons
Author: Dev2
Latest version: 1.0.12

# Get Native Array

## Purpose

Access device local storage and retrieve json arrays in a react-native readable way for K-vendas2.

| Platforms | Minimum  |
| --------- | :------: |
| Android   |  SDK 23  |
| iOS       | iOS 12.4 |

## Installation

```sh
yarn install get-native-array
```

## Usage

```js
import { getJSONArray } from 'get-native-array';
```

## API

### GetJSONArray

This method is responsible for accessing and returning json files stored in phone's memory as a react-native array.

##### Typescript Definition

```typescript
getJSONArray(fileName: string): Promise<Array<any>, "exception">
```

## License

MIT

---
npm package: @kasterweb/http-stream-rn
Description: Fetches and persist data from k-admin api
Author: Dev2
Latest version: 1.0.1

# Http Stream RN

## Purpose

Downloads data from back-end using Range Requests and stream responses. Also, stores it locally in the device as a file.

| Platforms | Minimum  |
| --------- | :------: |
| Android   |  SDK 23  |
| iOS       | iOS 12.4 |

## Installation

```sh
yarn install http-stream-rn
```

## Usage

```js
import { doHTTPRequest } from 'http-stream-rn';
```

## API

### DoHTTPRequest

This method is responsible for executing http range request and persisting the response in phone's native storage.

##### Typescript Definition
```typescript
doHTTPRequest(params: IParams): Promise<'success' | 'exception'>
```

---

### DeleteFile
This method is responsible for deleting saved file in phone's native storage.

##### Typescript Definition
```typescript
deleteFile(fileName: string, isDeleted: (result: true | false) => void): void
```
## License

MIT