0.1.0 • Published 9 years ago

react-native-taginput v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

react-native-taginput

Tag input component fro React Native

ChangeLog

  • v0.1.0
  • Initial working version

Installation

  1. Run npm install react-native-taginput --save
  2. import TagInput from 'react-native-taginput

Basic usage

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>
    );
  }
}

Examples

Add example link

Props

PropTypeDescription
initialTagsarray
suggestionsarray
containerStylestyle
inputContainerStylestyle
listStylestyle
placeholderstring
onUpdateTagsfunction
onUpdateLayoutfunction

Contribution

Issues and Pull requests are welcome. Please add a screenshot of bug and code snippet.

About

This is inspired by react-native-autocomplete-input.


MIT Licensed