# react-native-tag-select **Repository Path**: TestsLing/react-native-tag-select ## Basic Information - **Project Name**: react-native-tag-select - **Description**: 🏷 A simple tag component to act as radio button / checkbox - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-tag-select [![npm version](https://badge.fury.io/js/react-native-tag-select.svg)](https://badge.fury.io/js/react-native-tag-select) A simple tag component to act as radio button / checkbox ## Features - Suports Array of objects or array of strings - Support max itens selected - Built in themes - Plain simple and flexible API ## Demo You can try on expo: https://exp.host/@rafaelmotta021/react-native-tag-select-demo or just check the image bellow:

## Setup `yarn add react-native-tag-select` or `npm install --save react-native-tag-select` ## Usage ```javascript import React from 'react'; import { View, StyleSheet, Button, Alert, Text, } from 'react-native'; import { TagSelect } from 'react-native-tag-select'; export default class App extends React.Component { render() { const data = [ { id: 1, label: 'Money' }, { id: 2, label: 'Credit card' }, { id: 3, label: 'Debit card' }, { id: 4, label: 'Online payment' }, { id: 5, label: 'Bitcoin' }, ]; return ( Payment: { this.tag = tag; }} onMaxError={() => { Alert.alert('Ops', 'Max reached'); }} />