New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-tag-input

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-tag-input

A tag input component for react-native

  • 0.0.15
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
213
decreased by-28.04%
Maintainers
2
Weekly downloads
 
Created
Source

React Native Tag Input

alt text

Simple Example

import TagInput from 'react-native-tag-input';

...

<TagInput
  value={this.state.emails}
  onChange={(emails) => this.onEmailChange(emails)}
  labelExtractor={(email) => email}
/>
Available PropertiesDescription
onChange(Required) A handler to be called when array of tags change. When new tags are added, they are appended as strings. If you use a non-string item type, make sure to either translate the strings to your item type before passing this value on to the "value" prop, or otherwise make sure your labelExtractor can handle both your item type and strings.
value(Required) An array of tags, which can be any type, as long as labelExtractor below can extract a string from it.
labelExtractor(Required) Function to extract string value for label from item
separatorsAn array of characters to use as tag separators
regexA RegExp to test tags after enter, space, or a comma is pressed
tagColorBackground color of tags
tagTextColorText color of tags
tagContainerStyleStyling override for container surrounding tag text
tagTextStyleStyling override for tag's text component
inputColorColor of text input
inputPropsAny misc. TextInput props (autofocus, placeholder, returnKeyType, etc.)
numberOfLinesMaximum number of lines of the tag input
parseOnBlurwhether to treat a blur event as a separator entry (iOS-only)

Keywords

FAQs

Package last updated on 18 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc