Skip to main content
Version: 3.4.2

badge

Props#


Reference#

badgeStyle#

Additional styling for badge (background) view component (optional)

TypeDefault
View style (object)Internal Style

Component#

Custom component to replace the badge outer component

TypeDefault
React Native ComponentView, if onPress then TouchableOpacity

containerStyle#

Style for the container (optional)

TypeDefault
View style (object)Internal Style

onPress#

Function called when pressed on the badge

TypeDefault
functionnone

status#

Determines color of the indicator

TypeDefault
primary, success, warning, errorprimary

textProps#

Extra props for text component (optional)

TypeDefault
Text props (object)none

textStyle#

Extra styling for icon component (optional)

TypeDefault
Text style (object)Internal Style

value#

Text value to be displayed by badge, defaults to empty

TypeDefault
String OR Number OR React Native Componentnone

Props for withBadge#


Reference for withBadge#

options#

Also receives all Badge props.

Object with the following (optional) keys:

bottom#

TypeDefault
number (optional)undefined

left#

TypeDefault
number (optional)undefined

right#

TypeDefault
number (optional)-16 (-3 with MiniBadge aka. without value)

top#

TypeDefault
number (optional)-1 (3 with MiniBadge)

hidden#

TypeDefault
boolean (optional)false

containerStyle#

TypeDefault
View style (object)Internal Style

value#

Text value to be displayed by badge, defaults to empty

TypeDefault
String OR Number OR React Native Component OR Function, which returns one of the formernone