# react-native-nestedlist

> A nested list component

Latest version **1.0.3** (published 2021-02-28) · ISC license · 0 weekly downloads

## Install

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

## 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.0.3 |
| Published | 2021-02-28 |
| First published | 2020-05-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ghadeer Aqraa |
| Maintainers | gaqraa |
| Keywords | NestedList, React, Native |

## Links

- npm: https://www.npmjs.com/package/react-native-nestedlist
- Repository: https://github.com/ghadeerAqraa/react-native-nestedlist
- Homepage: https://github.com/ghadeerAqraa/react-native-nestedlist#readme
- Issues: https://github.com/ghadeerAqraa/react-native-nestedlist/issues
- npm.io page: https://npm.io/package/react-native-nestedlist

## Dependencies (3)

- [react-native-check-box](https://npm.io/package/react-native-check-box.md) ^2.1.7
- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) ^6.6.0
- [@react-native-community/checkbox](https://npm.io/package/@react-native-community/checkbox.md) ^0.5.5

## 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

- 1.0.3 (latest) — 2021-02-28
- 1.0.2 — 2021-01-19
- 1.0.1 — 2020-12-24
- 1.0.0 — 2020-11-10
- 0.0.8 — 2020-10-14
- 0.0.7 — 2020-10-14
- 0.0.6 — 2020-08-09
- 0.0.5 — 2020-08-09
- 0.0.4 — 2020-06-09
- 0.0.3 — 2020-06-09
- 0.0.2 — 2020-06-09
- 0.0.1 — 2020-05-20

## README

# react-native-nestedlist
UI component for React Native to create list and sublist views.

#config
Edit ```android/app/build.gradle``` and add the following:

```apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"```


# Usage

npm i react-native-nestedlist

import NestedList from 'react-native-nestedlist'
```
const data = [{title:'Topic 1' , items :[{"sub_topic_id":1,"sub_topic_name":"Subtopic 1","is_selected":false},{"sub_topic_id":2,"sub_topic_name":"Subtopic 2","is_selected":false},{"sub_topic_id":3,"sub_topic_name":"Subtopic 3","is_selected":false}],opened:false},
{title:'Topic 2' , items :[{"sub_topic_id":1,"sub_topic_name":"Subtopic 1","is_selected":false},{"sub_topic_id":2,"sub_topic_name":"Subtopic 2","is_selected":false},{"sub_topic_id":3,"sub_topic_name":"Subtopic 3","is_selected":false}],opened:false}]
```
```
<NestedList
            topicsData={topicsData} 
            setTopic={setTopic}
            setSubTopic={setSubTopic}
            >
</NestedList>
```

# Props

* data : Array of nested itesms

* setTopic : open/close topic items

* setSubTopic : check/uncheck suptopic items for each topic

* select/deselect all subtopics 

* topic title style 

* subTopic title style

* select/deseletc button title style

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