Skip to content

Latest commit

 

History

History
executable file
·
34 lines (29 loc) · 1.29 KB

ListThumbnail.md

File metadata and controls

executable file
·
34 lines (29 loc) · 1.29 KB

list-thumbnail-headref

List Thumbnail

List Thumbnails are the medium to exhibit an image with your list item. To create a thumbnail list, nest <Thumbnail> component within <ListItem> component with few props and style.

Preview ios list-thumbnail-headref Preview android list-thumbnail-headref

Syntax

import React, { Component } from 'react';
import { Container, Header, Content, List, ListItem, Thumbnail, Text, Body } from 'native-base';
export default class ListThumbnailExample extends Component {
  render() {
    return (
      <Container>
        <Header />
        <Content>
          <List>
            <ListItem>
              <Thumbnail square size={80} source={{ uri: 'Image URL' }} />
              <Body>
                <Text>Sankhadeep</Text>
                <Text note>Its time to build a difference . .</Text>
              </Body>
            </ListItem>
          </List>
        </Content>
      </Container>
    );
  }
}