docs/public/2.0/list-section.html
A component used to group list items.
import * as React from 'react';
import { List } from 'react-native-paper';
class MyComponent extends React.Component {
render() {
return (
<List.Section>
<List.Subheader>Some title</List.Subheader>
<List.Item
title="First Item"
left={() => <List.Icon icon="folder" />}
/>
<List.Item
title="Second Item"
left={() => <List.Icon color="#000" icon="folder" />}
/>
</List.Section>
);
}
}
export default MyComponent;
title
Type: string
Title text for the section.
children (required)
Type: React.Node
Content of the section.
theme
Type: Theme
titleStyle
Type: TextStyleProp
Style that is passed to Title element.
style
Type: any