File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ interface DrawerItemProps {
16
16
width ?: number ;
17
17
background ?: string ;
18
18
text ?: string ;
19
+ textColor ?: string ;
19
20
icon ?: number ;
21
+ iconColor ?: string ;
20
22
onPress ?: Function ;
21
23
keepOpen ?: boolean ;
22
24
style ?: ViewStyle ;
@@ -347,7 +349,7 @@ class Drawer extends PureComponent<DrawerProps> {
347
349
{
348
350
width : itemsIconSize ,
349
351
height : itemsIconSize ,
350
- tintColor : itemsTintColor ,
352
+ tintColor : item . iconColor || itemsTintColor ,
351
353
opacity,
352
354
transform : [ { scale} ]
353
355
}
@@ -359,7 +361,7 @@ class Drawer extends PureComponent<DrawerProps> {
359
361
style = { [
360
362
styles . actionText ,
361
363
{
362
- color : itemsTintColor ,
364
+ color : item . textColor || itemsTintColor ,
363
365
opacity,
364
366
transform : [ { scale} ]
365
367
} ,
You can’t perform that action at this time.
0 commit comments