# react-native-basement

> 🍭🧁⛱️📦Cache all kinds of remote dependencies.

Latest version **0.0.1-alpha.1** (published 2020-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-basement
pnpm add react-native-basement
yarn add react-native-basement
bun add react-native-basement
```

## 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.0.1-alpha.1 |
| Published | 2020-05-27 |
| First published | 2020-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Alex Thomas |
| Maintainers | cawfree |
| Keywords | react, react-native, cache, storage, persistent, memory |

## Links

- npm: https://www.npmjs.com/package/react-native-basement
- Repository: https://github.com/cawfree/react-native-basement
- npm.io page: https://npm.io/package/react-native-basement

## Dependencies (4)

- [mnemonist](https://npm.io/package/mnemonist.md) ^0.36.1
- [seedrandom](https://npm.io/package/seedrandom.md) ^3.0.5
- [type-check](https://npm.io/package/type-check.md) ^0.4.0
- [use-deep-compare-effect](https://npm.io/package/use-deep-compare-effect.md) ^1.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.1-alpha.1 (latest) — 2020-05-27
- 0.0.1-alpha.0 — 2020-05-27

## README

# 📦 react-native-basement

<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square">

[**React Native Basement**](https://github.com/cawfree/react-native-basement) defines a way to easily cache remote dependencies, whether they're images, JSON or raw file content. Using the [`useBasement`](https://github.com/cawfree/react-native-basement/blob/161ac2ee4beee0ac66edb9fc0c54836e16ccbb2a/src/index.js#L54) hook, extensible declarative resource caching is a breeze. 🌊

Caching a support is a little _patchy_ in React Native. There's [**iOS-only support for the Image component**](https://reactnative.dev/docs/images#cache-control-ios-only), or dedicated libraries for specific types.

If you're only interested in caching images, I'd suggest taking a look at [**react-native-cached-image**](https://github.com/kfiroo/react-native-cached-image). If you're interested in caching anything else, such as [**SVGs**](https://github.com/react-native-community/react-native-svg),  [**Videos**](https://github.com/react-native-community/react-native-video) or [**Lottie Animations**](https://github.com/react-native-community/lottie-react-native), then this project is your friend!

## 🚀 installing

```bash
yarn add react-native-basement # or npm -i -s react-native-basement
```

That's about it! Please check out the [**Getting Started**](./docs/GETTING-STARTED.md) guide for integration details. There's also an included [**Example App**](./example/App.js).

## ✌️ licence
[**MIT**](./LICENSE.md)

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