# rn-editable-tag-cloud

> React Native component that contains and auto-wraps tags inside. Tags can be added or removed.

Latest version **0.0.3** (published 2017-12-14) · 0 weekly downloads

## Install

```sh
npm install rn-editable-tag-cloud
pnpm add rn-editable-tag-cloud
yarn add rn-editable-tag-cloud
bun add rn-editable-tag-cloud
```

## 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.3 |
| Published | 2017-12-14 |
| First published | 2017-12-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | akhoi90 |

## Links

- npm: https://www.npmjs.com/package/rn-editable-tag-cloud
- Repository: https://github.com/khoi-nguyen-2359/rn-editable-tag-cloud
- Homepage: https://github.com/khoi-nguyen-2359/rn-editable-tag-cloud#readme
- Issues: https://github.com/khoi-nguyen-2359/rn-editable-tag-cloud/issues
- npm.io page: https://npm.io/package/rn-editable-tag-cloud

## Recent versions

- 0.0.3 (latest) — 2017-12-14
- 0.0.2 — 2017-12-14
- 0.0.1 — 2017-12-14

## README

# rn-editable-tag-cloud
React Native component that contains and auto-wraps tags inside. Tags can be added or removed.

![](https://media.giphy.com/media/3ohs7MzTK0fvuLcBTa/giphy.gif)

## Installation

```
npm install --save rn-editable-tag-cloud
```

## Usage example

| props         | type        | required | usage                                                     |
|---------------|-------------|----------|-----------------------------------------------------------|
| items         | array       | yes      | Set of tags in tag cloud                                  |
| onItemsChanged| function    | yes      | Callback when set of tags has changed                     |
| renderItem    | function    | yes      | Render component for each tag item. Touchable wrapper will be handled inside tag cloud|
| tagInputMinWidth | integer  | yes      | Minimum width of tag text input (if set addable) before a line break|
| addable       | boolean     | no       | If set, tag cloud will have a text input for adding tag   |
| removable     | boolean     | no       | If set, tag cloud will remove tag on clicking on tag item |
| tagInputProps | object      | no       | Props that will be set into tag text input                |
| delimiters    | array       | no       | Set of character that will separate tags in a sequence of input text|
| tagInputWrapStyle| object   | no       | Style object for wrapper component of tag text input|


```javascript
<EditableTagCloud
          tagInputMinWidth={100}
          addable
          removable
          tagInputProps={{
            underlineColorAndroid: 'rgba(0,0,0,0)',
            style: styles.tagInput
          }}
          tagInputWrapStyle={styles.tagInputWrap}
          delimiters={[',', '/']}
          onItemsChanged={items => this.setState({allTags: items})}
          renderItem={(item, index) => {
            return (
              <View style={styles.itemWrap}>
                <Text style={styles.itemText}>{item}</Text>
              </View>
            )
          }}
          items={this.state.allTags} />
```

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