0.0.16 • Published 5 years ago
@mowgli/badge v0.0.16
@mowgli/badge
Badge component for React Native apps.
Instalation
npm install @mowgli/badgeyarn add @mowgli/badgeUsage
import Badge from '@mowgli/badge'
render() {
    <Badge text="Sent" accent="primary" size="big" full />
}Props
Reference
text
Contains the text to display.
| Type | Default | 
|---|---|
| string | empty | 
color
If you don't like any of the accent colors available you can set a custom background color with the property.
| Type | Default | 
|---|---|
| string | empty | 
accent
Determines the accent/background color.
| Type | Default | 
|---|---|
primary, success, info, warning, error | primary | 
size
Determines the size of the badge.
| Type | Default | 
|---|---|
small, medium, large | medium | 
fullWidth
Determines if the badge should occupy all the available space.
| Type | Default | 
|---|---|
| boolean | false |