From 9ebb279f8c35ffc4e7b6e1f4267c61029b725f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dog=CC=86us=CC=A7=20Erdem?= <48646654+DogusErdem@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:20:23 +0300 Subject: [PATCH] refactor: Changed the labelStyle prop of the menu component to rowTextStyle. --- src/components/Menu/Menu.tsx | 4 ++-- src/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Menu/Menu.tsx b/src/components/Menu/Menu.tsx index 726760f..2c886f8 100644 --- a/src/components/Menu/Menu.tsx +++ b/src/components/Menu/Menu.tsx @@ -38,7 +38,7 @@ const Menu : FCCWD = ( items, dividerColor, menuStyle, - labelStyle, + rowTextStyle, containerStyle, rowStyle, closeOnPress, @@ -90,7 +90,7 @@ const Menu : FCCWD = ( fontWeight: '500', lineHeight: typography?.body.smedium.lineHeight, paddingHorizontal: item.left ? 5 : 0, - color: theme?.lightBlack }, labelStyle]} + color: theme?.lightBlack }, rowTextStyle]} > {item.label} diff --git a/src/types.ts b/src/types.ts index a041143..ee547e9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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, - labelStyle?: StyleProp, + rowTextStyle?: StyleProp, dividerColor?: string, menuStyle?: ViewStyle, button?: (isOpen: boolean) => React.ReactNode,