Badge
Round colored badge, typically used to show a number.
PropTypes
Prop | Type | Description |
---|---|---|
label | string | Text to show inside the badge |
backgroundColor | string | Color of the badge background |
size | string | The badge size ('default' or 'small'). Default 'default'. |
containerStyle | object | Additional styles for the top container |
Usage
import {Badge, Colors} from 'react-native-ui-lib';
<Badge label={'10'} containerStyle={{marginRight: 10}} backgroundColor={Colors.red40} />