Logo

List.Image

A component to show image in a list item.

Usage

import * as React from 'react';
import { List, MD3Colors } from 'react-native-paper';

const MyComponent = () => (
  <>
    <List.Image variant="image" source={{uri: 'https://www.someurl.com/apple'}} />
    <List.Image variant="video" source={require('../../some-apple.png')} />
  </>
);

export default MyComponent;

Props

Type: ImageSourcePropType
Type: 'image' | 'video'
Default value: 'image'
Type: StyleProp<ImageStyle>
Type: ThemeProp
Edit this page