Display rows of information, such as a contact list or menu. They are very customizeable and can contain avatars, icons, and more.
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;
import React from 'react';
import { View } from 'react-native';
import { ListItem } from 'monalisa-ui';
const Example = () => (
<View>
<ListItem
title="Jordy Ratke"
subTitle="United States of America"
avatar={{ uri: 'https://s3.amazonaws.com/uifaces/faces/twitter/rdsaunders/128.jpg' }}
/>
<ListItem
title="Elvie Lakin"
subTitle="United States of America"
avatar={{ uri: 'https://s3.amazonaws.com/uifaces/faces/twitter/markwienands/128.jpg' }}
/>
<ListItem
title="Alda Dicki"
subTitle="United States of America"
avatar={{ uri: 'https://s3.amazonaws.com/uifaces/faces/twitter/rodnylobos/128.jpg' }}
right={<Icon name="right" size={24} />}
/>
</View>
);
export default Example;
import React from 'react';
import { View } from 'react-native';
import { ListItem } from 'monalisa-ui';
import Icon from 'react-native-vector-icons/AntDesign';
const Example = () => (
<View>
<ListItem
title="Filomena Casper"
subTitle="United States of America"
left={<Icon name="picture" size={24} />}
right={<Icon name="staro" size={24} />}
/>
<ListItem
title="Antonio Kuvalis"
subTitle="United States of America"
left={<Icon name="shoppingcart" size={24} />}
right={<Icon name="staro" size={24} />}
/>
</View>
);
export default Example;
import React from 'react';
import { View } from 'react-native';
import { ListItem } from 'monalisa-ui';
const Example = () => (
<View>
<ListItem
title="Jordy Ratke"
subTitle="United States of America"
avatar={{ uri: 'https://s3.amazonaws.com/uifaces/faces/twitter/rdsaunders/128.jpg' }}
border={false}
/>
<ListItem
title="Elvie Lakin"
subTitle="United States of America"
avatar={{ uri: 'https://s3.amazonaws.com/uifaces/faces/twitter/markwienands/128.jpg' }}
border={false}
/>
</View>
);
export default Example;