2.4.0 • Published 3 years ago

react-native-chips v2.4.0

Weekly downloads
39
License
MIT
Repository
github
Last release
3 years ago

React Native Chips

A React Native component which is used to represent array of text. Inspired from material design chips

Getting Started

npm i react-native-chips --save

Usage

import ReactChipsInput from 'react-native-chips';

< ReactChipsInput 
    label="Enter Fruits" initialChips={["Apple", "Orange"]} 
    onChangeChips={(chips) => console.log(chips)} 
    alertRequired={true} 
    chipStyle={{ borderColor: 'blue', backgroundColor: 'grey' }} 
    inputStyle={{fontSize: 22}} 
    labelStyle={{ color: 'blue'}} 
    labelOnBlur={{ color: '#666' }} />

Properties

namedescriptiontypedefault
labelPlaceholder for the Text inputString'Enter your text'
initialChipsInitial Chips to be presentArray-
onChangeChipsTo get the value of chips in arrayFunction-
alertRequiredTo trigger alert on adding and removing chipsBooleanfalse
chipStyleChanging the style of chip elementsStyle Object-
inputStyleChanging the style of input Text boxStyle Object-
labelStyleChanging the style of label inside the text boxStyle Object-
labelOnBlurChanging the style of label when focusedStyle Object-

Sample

demo demo_with_alert

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

react-native-chips is MIT License @ Ramprasath R

2.4.0

3 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago