List.Section

A component used to group list items.

Usage

import * as React from 'react';
import { List } from 'react-native-paper';

export default class MyComponent extends React.Component {
  render() {
    return (
      <List.Section title="Some title">
        <List.Item
          title="First Item"
          left={() => <List.Icon icon="folder" />}
       />
        <List.Item
          title="Second Item"
          left={() => <List.Icon icon="folder" />}
       />
     </List.Section>
    );
  }
}

export default MyComponent;

Props

title
Type: string

Title text for the section.

children (required)
Type: React.Node

Content of the section.

theme
Type: Theme
style
Type: any