Tag input component fro React Native
- v0.1.0
- Initial working version
- Run
npm install react-native-taginput --save
import TagInput from 'react-native-taginput
import TagInput from 'react-native-taginput';
class App extends Component {
render() {
return (
<View style={styles.container}>
<TagInput
ref='tagInput'
initialTags={initialTags}
suggestions={this.state.data.suggestions}
containerStyle={styles.taginput}
onChange={this._onChange.bind(this)}
onUpdateLayout={this._onUpdateLayout.bind(this)}
/>
</View>
);
}
}
Add example link
Prop | Type | Description |
---|---|---|
initialTags | array | |
suggestions | array | |
containerStyle | style | |
inputContainerStyle | style | |
listStyle | style | |
placeholder | string | |
onUpdateTags | function | |
onUpdateLayout | function |
Issues and Pull requests are welcome. Please add a screenshot of bug and code snippet.
This is inspired by react-native-autocomplete-input.
MIT Licensed