Card

A card is a sheet of material that serves as an entry point to more detailed information.

Usage

import * as React from 'react';
import { Button, Card, Title, Paragraph } from 'react-native-paper';

const MyComponent = () => (
  <Card>
    <Card.Content>
      <Title>Card title</Title>
      <Paragraph>Card content</Paragraph>
    </Card.Content>
    <Card.Cover source={{ uri: 'https://picsum.photos/700' }} />
    <Card.Actions>
      <Button>Cancel</Button>
      <Button>Ok</Button>
    </Card.Actions>
  </Card>
);

export default MyComponent;

Props

elevation
Type: number
Default value: 1

Resting elevation of the card which controls the drop shadow.

onLongPress
Type: () => mixed

Function to execute on long press.

onPress
Type: () => mixed

Function to execute on press.

children (required)
Type: React.Node

Content of the Card.

style
Type: any
theme
Type: Theme

Static properties