# shaara-preset-react-native

> Preset for react-native development

Latest version **0.4.0** (published 2017-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install shaara-preset-react-native
pnpm add shaara-preset-react-native
yarn add shaara-preset-react-native
bun add shaara-preset-react-native
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2017-09-06 |
| First published | 2017-07-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rewieer |
| Maintainers | rewieer |
| Keywords | shaara, javascript, react-native |

## Links

- npm: https://www.npmjs.com/package/shaara-preset-react-native
- Homepage: https://bitbucket.org/evosphereDeveloper/shaara#readme
- npm.io page: https://npm.io/package/shaara-preset-react-native

## Dependencies (3)

- [evojs](https://npm.io/package/evojs.md) 0.5.1
- [redux](https://npm.io/package/redux.md) ^3.7.1
- [faussaire](https://npm.io/package/faussaire.md) >=0.4.1

## Recent versions

- 0.4.0 (latest) — 2017-09-06
- 0.3.0 — 2017-09-06
- 0.2.0 — 2017-09-04
- 0.1.1 — 2017-08-15
- 0.1.0 — 2017-08-13
- 0.0.8 — 2017-08-10
- 0.0.7 — 2017-08-10
- 0.0.6 — 2017-08-09
- 0.0.5 — 2017-08-09
- 0.0.3 — 2017-07-05
- 0.0.2 — 2017-07-05
- 0.0.1 — 2017-07-05

## README

# shaara-preset-react-native

Preset to develop with react-native. It includes great utility tools to work in
a mobile environment, yet it's purely Javascript.

## Services

* **store** : manage a redux store with persistence.
* **network.status** : manage the network status
* **request.sender** : allows to send HTTP request. It uses the bridge pattern to allow
different fetch implementation given test or development|production environment.
On test environment, it will use Faussaire to mock HTTP requests, and a service called faussaire
will be added to add custom routes and handlers. See Faussaire documentation on github.
* **security.token** : allows an authentification mechanism. It will rely on a getTokenImplementation method in
the configuration to customize how to set and get a token (usually from the store)

## Parameters

* **fetch** : if provided, the request sender will use this function instead of the global fetch. Indeed this preset
rely on the fetch method. If you want to use Axios or Frisbee or example, you can easily write an adapter that follows
the same API as fetch. One day we will provide a function "requestImplementation" to allow changing it easily.

## Configuration

### getStoreConfiguration () => { reducers : {[key: string]: ReducerType, debounce : number }

Configure the store with reducers. Debounce is used for persistence. It ensures the store doesn't get
persisted more often than this amount of time. Default is 500.

### getTokenImplementation<T> () => { setToken: (token : T) => void, getToken: () => T }

Configure the SecurityToken system.

---
_Source: https://npm.io/package/shaara-preset-react-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
