/* @flow */ import * as React from 'react'; import { ScrollView, StyleSheet, Image } from 'react-native'; import { ListSection, ListItem, Divider, withTheme } from 'react-native-paper'; import type { Theme } from 'react-native-paper/types'; type Props = { theme: Theme, }; class ListSectionExample extends React.Component { static title = 'ListSection'; render() { const { theme: { colors: { background }, }, } = this.props; return ( } title="List item 1" description="Describes item 1" /> } title="List item 2" description="Describes item 2" /> } title="List item 1" description="Describes item 1. Example of a very very long description." /> } title="List item 2" description="Describes item 2. Example of a very very long description." /> ); } } const styles = StyleSheet.create({ container: { flex: 1, }, avatar: { height: 40, width: 40, }, }); export default withTheme(ListSectionExample);