Skip to content

kyo504/react-native-taginput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Prop Type Description
initialTags array
suggestions array
containerStyle style
inputContainerStyle style
listStyle style
placeholder string
onUpdateTags function
onUpdateLayout function

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages