Giter VIP home page Giter VIP logo

react-native-chip-view's Introduction

PRs Welcome

React Native: Material Chip View

Material Chips represent complex entities in small blocks, such as a contact. A chip may contain entities such as a photo, text, rules, an icon, or a contact.

Getting started

$ npm install react-native-chip-view --save

Types of Chips

Chips can be used for various types of entities, including free form text, predefined text, rules, or contacts. Chips may also contain icons.

Usage

import { RNChipView } from 'react-native-chip-view'

<RNChipView
  title={'prscX'}
  avatar={false}
/>

Props

Prop Type Default Note
title string Specify label wants to show. Required
titleStyle object Specify style wants to apply on title
onPress func Specify event handler for on press
avatar bool, number, component - Specify true in case you need avatar. - Specify avatar in case you want custom avatar
avatarStyle object Specify custom avatar style
selectable bool, number, component - Specify true in case you need chip as selection. - Specify selection icon in case you want to pass your own icon
selectableStyle string Specify custom selectable style
cancelable bool, number, component - Specify true in case you need chip as cancelable. - Specify cancelable icon in case you want to pass your own icon
cancelableStyle string Specify custom cancelable style
backgroundColor string #dedede Specify chip background color
maxWidth string 300 Specify chip max width
height string 40 Specify chip height
borderRadius string 40 Specify container border radius
ellipsizeMode string middle Specify text ellipsize mode

Contribution

Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

License

This library is provided under the Apache 2 License.

RNChipView @ Pranav Raj Singh Chauhan

react-native-chip-view's People

Contributors

prscx avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.