({
children,
title,
titleStyle,
style,
theme: themeOverrides,
...rest
}: Props)
| 54 | * ``` |
| 55 | */ |
| 56 | const ListSection = ({ |
| 57 | children, |
| 58 | title, |
| 59 | titleStyle, |
| 60 | style, |
| 61 | theme: themeOverrides, |
| 62 | ...rest |
| 63 | }: Props) => { |
| 64 | const theme = useInternalTheme(themeOverrides); |
| 65 | const viewProps = { ...rest, theme }; |
| 66 | |
| 67 | return ( |
| 68 | <View {...viewProps} style={[styles.container, style]}> |
| 69 | {title ? ( |
| 70 | <ListSubheader style={titleStyle} theme={theme}> |
| 71 | {title} |
| 72 | </ListSubheader> |
| 73 | ) : null} |
| 74 | {children} |
| 75 | </View> |
| 76 | ); |
| 77 | }; |
| 78 | |
| 79 | ListSection.displayName = 'List.Section'; |
| 80 |
nothing calls this directly
no test coverage detected
searching dependent graphs…