ListItem
Display rows of information, such as a contact list or menu. They are very customizeable and can contain avatars, icons, and more.

View full example: ListItem Example
import React from 'react';
import { View } from 'react-native';
import { ListItem } from 'monalisa-ui';
const Example = () => (
<View>
<ListItem
title="Matteo Kilback"
subTitle="United States of America"
/>
<ListItem
title="Lauriane Dibbert"
subTitle="United States of America"
/>
</View>
);
export default Example;Configuration
Property
Default
Option
Description
title
-
string
Title of list item
subTitle
-
string
Subtitle text
left
-
element
Display left component
right
-
element
Display right component
footer
-
element
Display footer component
titleStyle
-
-
Style for the title
subTitleStyle
-
-
Style for the subTitle
style
-
-
Style for the ListItem
avatar
-
-
Displays an Avatar on the left
avatarStyle
-
-
Style for the avatar
border
true
boolean
Border bottom ListItem
Example
ListItem avatar
ListItem icon
ListItem no border
Last updated