MCPcopy Create free account
hub / github.com/callstack/react-native-paper / ListSection

Function ListSection

src/components/List/ListSection.tsx:56–77  ·  view source on GitHub ↗
({
  children,
  title,
  titleStyle,
  style,
  theme: themeOverrides,
  ...rest
}: Props)

Source from the content-addressed store, hash-verified

54 * ```
55 */
56const 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
79ListSection.displayName = 'List.Section';
80

Callers

nothing calls this directly

Calls 1

useInternalThemeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…