1.1.0 • Published 5 years ago

react-native-chip-tags v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react-native-chip-tags

A react native component for editable chips tag

License MIT NPM version

Installation

  • 1.Run npm i react-native-chip-tags --save or yarn add react-native-chip-tags
  • 2.import { TagArea } from 'react-native-chip-tags'

Screenshots

Getting started

Add react-native-chip-tags to your js file.

import { TagArea, Chip } from 'react-native-chip-tags'

Inside your component's render method, use TagArea:

 render() {
         return (
             <TagArea handleTagChanged={this._handleOnTagAdded} />
         );
 }

API

PropsTypeOptionalDefaultDescription
chipStyleobjecttrueGray background etc.Custom chip style
tagWrapperobjecttruenothingCustom wrapper position
editablebooleantruefalseFor editable data
pinChipIndexbooleantruefalseFor first chip change color to blue as default
handleOnChangefunctiontruenullHandle on change
handleOnBlurfunctiontruenullHandle on blur
chipsCountnumbertrue5Chip count
draftChipsarraytrue[]For render already filled tags
handleTagChangedfunctiontruenullFor hande tag change
maxLengthnumbertrue50Max text lenght
multilinenumbertruefalseFor multi line

MIT Licensed by UE