mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-22 08:01:56 +08:00
fix: pass labelStyle prop in DrawerItem label (#170)
This commit is contained in:
committed by
Satyajit Sahoo
parent
442e1121fc
commit
cd7c9c4398
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user