Simple react native badge component
npm install bz-rn-badge
Reference example app
import Badge from 'bz-rn-badge';
<Badge
text="Label"
bgColor="#007AFF"
textColor="white"
height={30}
icon="accessibility"
/>
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 |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library