“Kartu di React Native” Kode Jawaban

Kartu di React Native

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

const LeftContent = props => <Avatar.Icon {...props} icon="folder" />

const MyComponent = () => (
  <Card>
    <Card.Title title="Card Title" subtitle="Card Subtitle" left={LeftContent} />
    <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;
Alert Alpaca

kartu bereaksi asli

npm install --save react-native-material-cards
Happy Herring

Jawaban yang mirip dengan “Kartu di React Native”

Pertanyaan yang mirip dengan “Kartu di React Native”

Lebih banyak jawaban terkait untuk “Kartu di React Native” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya