/* @flow */ import * as React from 'react'; import { ListView, StyleSheet } from 'react-native'; import { Divider, Subheading, withTheme } from 'react-native-paper'; import type { Theme } from 'react-native-paper/types'; type Props = { theme: Theme, }; const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }); const dataSource = ds.cloneWithRows([ 'Apple', 'Banana', 'Coconut', 'Lemon', 'Mango', 'Peach', ]); const DividerExample = (props: Props) => { const { theme: { colors: { background } } } = props; return ( ( {rowData} )} renderSeparator={(sectionId, rowId) => } /> ); }; DividerExample.title = 'Divider'; const styles = StyleSheet.create({ container: { flex: 1, }, item: { paddingVertical: 8, paddingHorizontal: 16, }, }); export default withTheme(DividerExample);