diff --git a/src/components/menu/MenuItem.tsx b/src/components/menu/MenuItem.tsx index 64b215c1..211a6687 100644 --- a/src/components/menu/MenuItem.tsx +++ b/src/components/menu/MenuItem.tsx @@ -58,6 +58,7 @@ const MenuItemComponent = ({ item, isLast }: MenuItemComponentProps) => { style={[ item.isTitle ? styles.menuItemTitleText : styles.menuItemText, textColor, + item.textStyle ]} > {item.text} diff --git a/src/components/menu/types.d.ts b/src/components/menu/types.d.ts index 514e5c94..aec59d43 100644 --- a/src/components/menu/types.d.ts +++ b/src/components/menu/types.d.ts @@ -1,5 +1,5 @@ import { TransformOriginAnchorPosition } from '../../utils/calculations'; - +import { TextStyle } from 'react-native'; export type MenuItemProps = { text: string; icon?: string | (() => React.ReactElement); @@ -7,6 +7,7 @@ export type MenuItemProps = { isTitle?: boolean; isDestructive?: boolean; withSeparator?: boolean; + textStyle?: TextStyle; }; export type MenuListProps = {