fix: pass labelStyle prop in DrawerItem label (#170)

This commit is contained in:
Danijel Dedic
2019-11-17 01:25:54 +01:00
committed by Satyajit Sahoo
parent 442e1121fc
commit cd7c9c4398

View File

@@ -64,6 +64,7 @@ type Props = {
export default function DrawerItem({
icon,
label,
labelStyle,
focused = false,
activeTintColor = '#6200ee',
inactiveTintColor = 'rgba(0, 0, 0, .68)',
@@ -108,10 +109,13 @@ export default function DrawerItem({
{typeof label === 'string' ? (
<Text
numberOfLines={1}
style={{
color,
fontWeight: '500',
}}
style={[
{
color,
fontWeight: '500',
},
labelStyle,
]}
>
{label}
</Text>