Tag input component fro React Native
npm install react-native-taginputTag input component fro React Native
1. Run npm install react-native-taginput --save
2. import TagInput from 'react-native-taginput
``javascript
import TagInput from 'react-native-taginput';
class App extends Component {
render() {
return (
initialTags={initialTags}
suggestions={this.state.data.suggestions}
containerStyle={styles.taginput}
onChange={this._onChange.bind(this)}
onUpdateLayout={this._onUpdateLayout.bind(this)}
/>
);
}
}
``
> Add example link
| Prop | Type | Description |
:------------ |:---------------:| :-----|
| initialTags | array | |
| suggestions | array | |
| containerStyle | style | |
| inputContainerStyle | style | |
| listStyle | style | |
| placeholder | string | |
| onUpdateTags | function | |
| onUpdateLayout | function | |
---
MIT Licensed