Skip to content

Commit

Permalink
refactor: Changed the labelStyle prop of the menu component to rowTex…
Browse files Browse the repository at this point in the history
…tStyle.
  • Loading branch information
DogusErdem committed Mar 7, 2024
1 parent 586b119 commit 9ebb279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Menu : FCCWD<MenuProps> = (
items,
dividerColor,
menuStyle,
labelStyle,
rowTextStyle,
containerStyle,
rowStyle,
closeOnPress,
Expand Down Expand Up @@ -90,7 +90,7 @@ const Menu : FCCWD<MenuProps> = (
fontWeight: '500',
lineHeight: typography?.body.smedium.lineHeight,
paddingHorizontal: item.left ? 5 : 0,
color: theme?.lightBlack }, labelStyle]}
color: theme?.lightBlack }, rowTextStyle]}
>
{item.label}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export type IconComponentType = React.ComponentType<
export type MenuProps = {
items: Array<{ label: string, left?: React.ReactNode, right?: React.ReactNode, onPress?: () => void }>,
containerStyle?: StyleProp<ViewStyle>,
labelStyle?: StyleProp<TextStyle>,
rowTextStyle?: StyleProp<TextStyle>,
dividerColor?: string,
menuStyle?: ViewStyle,
button?: (isOpen: boolean) => React.ReactNode,
Expand Down

0 comments on commit 9ebb279

Please sign in to comment.