Skip to main content

Badge

Badges are small components typically used to indicate the status of an item, such as "new" or "unread", to the user.

Import

import { Badge } from '@nomada-sh/react-native-eyecandy';

Example

Props

View Props

Inherits View Props.


color

TypeDefault
'default' or 'primary' or 'error' or 'warning' or 'success' or 'greyout''default'

size

TypeDefault
number18

anchorOrigin

TypeDefault
AnchorOrigin{ vertical: 'bottom', horizontal: 'right' }

badgeStyle

Type
View Style

hidden

Type
boolean

Type Definitions

AnchorOrigin

Type
object

Properties

NameTypeRequiredDescription
horizontal'left' or 'right'YesHorizontal position of the badge.
vertical'top' or 'bottom'YesVertical position of the badge.