Socket
Socket
Sign inDemoInstall

react-native-email-chip

Package Overview
Dependencies
568
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-email-chip

A simple and customizable React Native component that implements email chips.


Version published
Weekly downloads
63
increased by5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-email-chip

A simple and customizable React Native component that implements email chips.

Demo

Installation

npm install react-native-email-chip

Example

import EmailChip from 'react-native-email-chip';
...
onChange = (emails) => {
  this.setState({ emails })
}
...
 <EmailChip
    emails={this.state.emails}
    onChange={this.onChange}
    // placeholder="Enter email"
    // placeholderTextColor="black"
    // chipContainerStyle={{backgroundColor:'white'}}
    // invalidChipContainerStyle={{backgroundColor:'red'}}
    // chipTextStyle={{color:'#000'}}
    // invalidChipTextStyle = {{color: 'white'}}
    // textInputStyles={{borderBottomWidth: 0}}
  />

Props

PropDescriptionTypeDefault
emailsAn array of email chips to be displayedArrayRequired
onChangeA handler to be called when array of email chips change.FunctionRequired
chipContainerStyleStyling override for container surrounding chipObject{{backgroundColor: '#d2d5dd'}}
invalidChipContainerStyleStyling override for container surrounding invalid chipObject{{backgroundColor: '#CC2D22'}}
chipTextStyleStyling override for chip textObject{{color: 'black'}}
invalidChipTextStyleStyling override for invalid chip textObject{{color: 'white'}}
textInputStylesStyling override for textinputObject{{borderBottomWidth : 1}}
placeholderCustom placeholder textString"Enter email"
placeholderTextColorStyling override for placeholder text colorString"grey"

Keywords

FAQs

Last updated on 03 Feb 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc