Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.17 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.17 KB

bz-rn-badge

Simple react native badge component

Installation

npm install bz-rn-badge

Usage

Reference example app

import Badge from 'bz-rn-badge';

<Badge
    text="Label"
    bgColor="#007AFF"
    textColor="white"
    height={30}
    icon="accessibility"
/>

Props

Prop name Type Description Default value
text string Label text
bgColor string Background color of the badge '#007AFF'
textColor string Text color of the badge 'white'
width number Optional to set the width of the badge
height number Optional to se the height of the badge 30
icon string Set IonIcon name

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library