diff --git a/src/components/List/ListAccordion.tsx b/src/components/List/ListAccordion.tsx index 7c85098898..a23747d77c 100644 --- a/src/components/List/ListAccordion.tsx +++ b/src/components/List/ListAccordion.tsx @@ -12,6 +12,7 @@ import { ViewProps, ViewStyle, PressableAndroidRippleConfig, + ImageStyle, } from 'react-native'; import { ListAccordionGroupContext } from './ListAccordionGroup'; @@ -83,6 +84,10 @@ export type Props = { * Style that is passed to Description element. */ descriptionStyle?: StyleProp; + /** + * Style that is passed to each child of the List.Accordion. + */ + childrenStyle?: StyleProp; /** * Color of the ripple effect. */ @@ -169,6 +174,7 @@ const ListAccordion = ({ theme: themeOverrides, titleStyle, descriptionStyle, + childrenStyle, titleNumberOfLines = 1, descriptionNumberOfLines = 2, rippleColor: customRippleColor, @@ -327,6 +333,7 @@ const ListAccordion = ({ return React.cloneElement(child as React.ReactElement, { style: [ theme.isV3 ? styles.childV3 : styles.child, + childrenStyle, child.props.style, ], theme,