1.0.1 • Published 7 years ago
react-native-tags-package v1.0.1
React Native Tags Package
A complete package for all types of tags for react native apps
Getting Started
Installation
npm i react-native-tags-package --saveUsage
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
| Key | Type | Default | Value |
|---|---|---|---|
| name | String | tag | any string |
| color | String | white | react native color formats |
| backgroundColor | String | black | react native color formats |
| borderRadius | Number | 0 | intergers |
TagX
| Key | Type | Default | Value |
|---|---|---|---|
| name | String | tag | valid strings |
| icon | String | close-circle | icon name |
| color | String | white | react native color formats |
| backgroundColor | String | black | react native color formats |
| borderRadius | Number | 0 | intergers |
| onPress | Function | ()=>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
