# selectable-list

> React Hook for selectable lists ## Installation ```bash $ npm i selectable-list ```

Latest version **1.2.0** (published 2020-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install selectable-list
pnpm add selectable-list
yarn add selectable-list
bun add selectable-list
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-09-05 |
| First published | 2020-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | douglas Oliveira |
| Maintainers | douglasolv |

## Links

- npm: https://www.npmjs.com/package/selectable-list
- Repository: https://github.com/douglasOlv/selectable-list
- Homepage: https://github.com/douglasOlv/selectable-list#readme
- Issues: https://github.com/douglasOlv/selectable-list/issues
- npm.io page: https://npm.io/package/selectable-list

## Recent versions

- 1.2.0 (latest) — 2020-09-05
- 1.1.0 — 2020-09-04

## README

# Selectable-list
React Hook for selectable lists
## Installation
```bash
$ npm i selectable-list
```

```js
import { createListStore } from 'selectable-list'
```

## Usage
```js
const App = () => {
  const [data, setData, controller] = createListStore()
...
```

```js
  function renderItem({ item }) {

    return (
    <TouchableOpacity onPress={() => controller.selectItem(item.id)}>
      <View>
        <Text >
          {item.text}
        </Text>
        <Text>
          {item.selected ? "true" : "false"}
        </Text>
      </View>
    </TouchableOpacity>
    )
  }
```

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