Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/components/List/ListAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
ViewProps,
ViewStyle,
PressableAndroidRippleConfig,
ImageStyle,
} from 'react-native';

import { ListAccordionGroupContext } from './ListAccordionGroup';
Expand Down Expand Up @@ -83,6 +84,10 @@ export type Props = {
* Style that is passed to Description element.
*/
descriptionStyle?: StyleProp<TextStyle>;
/**
* Style that is passed to each child of the List.Accordion.
*/
childrenStyle?: StyleProp<ViewStyle | TextStyle | ImageStyle>;
/**
* Color of the ripple effect.
*/
Expand Down Expand Up @@ -169,6 +174,7 @@ const ListAccordion = ({
theme: themeOverrides,
titleStyle,
descriptionStyle,
childrenStyle,
titleNumberOfLines = 1,
descriptionNumberOfLines = 2,
rippleColor: customRippleColor,
Expand Down Expand Up @@ -327,6 +333,7 @@ const ListAccordion = ({
return React.cloneElement(child as React.ReactElement<any>, {
style: [
theme.isV3 ? styles.childV3 : styles.child,
childrenStyle,
child.props.style,
],
theme,
Expand Down