New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@esteemapp/react-native-tags

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esteemapp/react-native-tags

Tag input component for React Native

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

React-Native-Tags

Build Status npm

A React Native component that allows you to input text and formats the text into a tag when a space or comma is entered. Tapping on the tag will remove it.

Demo

Installation

npm install --save react-native-tags
yarn add react-native-tags

Usage

import React from "react";
import Tags from "react-native-tags";

const UselessComponent = () => (
  <Tags
    initialText="monkey"
    initialTags={["dog", "cat", "chicken"]}
    onChangeTags={tags => console.log(tags)}
    onTagPress={(index, tagLabel, event, deleted) =>
      console.log(index, tagLabel, event, deleted ? "deleted" : "not deleted")
    }
    containerStyle={{ justifyContent: "center" }}
    inputStyle={{ backgroundColor: "white" }}
  />
);

Props

PropNameDescriptionDefault
initialTextThe input element's text
initialTags['the', 'initial', 'tags']
onChangeTagsFires when tags are added or removed
maxNumberOfTagsThe max number of tags that can be enteredinfinity
onTagPressFires when tags are pressed
readonlyTags cannot be modifiedfalse
deleteTagOnPressRemove the tag when pressedtrue
containerStyleStyle
styleStyle (containerStyle alias)
inputStyleStyle
tagContainerStyleStyle
tagTextStyleStyle

FAQs

Package last updated on 04 Sep 2018

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