1.0.1 • Published 7 years ago

react-native-tags-package v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

React Native Tags Package

A complete package for all types of tags for react native apps

LICENSE MIT

NPM

Getting Started

Installation

npm i react-native-tags-package --save

Usage

App.js
import React from 'react';
import { View } from 'react-native';

import { Tag, TagX } from './index';

const App = () => 
  <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
    <Tag />
    <TagX />
  </View>

export default App;

Props

Tag
KeyTypeDefaultValue
nameStringtagany string
colorStringwhitereact native color formats
backgroundColorStringblackreact native color formats
borderRadiusNumber0intergers
TagX
KeyTypeDefaultValue
nameStringtagvalid strings
iconStringclose-circleicon name
colorStringwhitereact native color formats
backgroundColorStringblackreact native color formats
borderRadiusNumber0intergers
onPressFunction()=>alert('Tag Pressed')valid functions

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License