File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
demo/src/screens/componentScreens Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,18 @@ const examples = [
98
98
title : 'Empty Gravatar' ,
99
99
backgroundColor : Colors . red60 ,
100
100
source : { uri : 'https://www.gravatar.com/avatar/2497473d558a37020c558bf26e380a7c?d=blank' }
101
+ } ,
102
+ {
103
+ title : 'With custom badge label' ,
104
+ label : 'LD' ,
105
+ backgroundColor : Colors . red60 ,
106
+ badgePosition : 'BOTTOM_RIGHT' ,
107
+ badgeProps : {
108
+ label : '+2' ,
109
+ size : 'large' ,
110
+ borderWidth : 1.5 ,
111
+ borderColor : Colors . white ,
112
+ }
101
113
}
102
114
] ;
103
115
Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ class Avatar extends PureComponent<AvatarPropTypes> {
253
253
size = { this . getBadgeSize ( ) }
254
254
{ ...badgeProps }
255
255
containerStyle = { this . getBadgePosition ( ) }
256
- label = { undefined }
257
256
testID = { `${ testID } .onlineBadge` }
258
257
/>
259
258
) ;
You can’t perform that action at this time.
0 commit comments