Steps to customize theme for List attributes:
| Property | Description |
|---|---|
| listBorderColor | List border color |
| listDividerBg | List divider background color |
| listItemPadding | Padding between list items |
| listNoteColor | List note color |
| listNoteSize | Font size for Note in list items |
| listItemHeight | Height of list item |
Syntax
import React, { Component } from 'react-native';
import { Container, Content, List, ListItem, Text, Icon } from 'native-base';
import myTheme from './Themes/myTheme';
export default class ThemeListExample extends Component {
render() {
return (
<Container>
<Content theme={myTheme}>
<List>
<ListItem itemDivider>
<Text>Goalkeeper</Text>
</ListItem>
<ListItem >
<Text>Simon Mignolet</Text>
</ListItem>
<ListItem itemDivider>
<Text>Defenders</Text>
</ListItem>
<ListItem>
<Text>Nathaniel Clyne</Text>
</ListItem>
<ListItem iconLeft>
<Icon name='ios-notifications' />
<Text>Dejan Lovren</Text>
<Text note>Note here</Text>
</ListItem>
<ListItem iconLeft iconRight>
<Icon name='ios-mic' />
<Text>Mama Sakho</Text>
<Icon name='ios-mic-outline' />
</ListItem>
</List>
</Content>
</Container>
);
}
}