Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: pass labelStyle prop in DrawerItem label (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddedic authored and satya164 committed Nov 17, 2019
1 parent 442e112 commit cd7c9c4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/drawer/src/views/DrawerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type Props = {
export default function DrawerItem({
icon,
label,
labelStyle,
focused = false,
activeTintColor = '#6200ee',
inactiveTintColor = 'rgba(0, 0, 0, .68)',
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit cd7c9c4

Please sign in to comment.