Card
Last updated
Last updated
import React from 'react';
import { Text } from 'react-native';
import { Card } from 'monalisa-ui';
const Example = () => (
<Card>
<Text>This is content card</Text>
</Card>
);
export default Example;import React from 'react';
import { View, Text } from 'react-native';
import { Card } from 'monalisa-ui';
const Example = () => (
<View>
<Card>
<Text>This is content card</Text>
</Card>
<Card bordered>
<Text>This is content card bordered</Text>
</Card>
<Card bordered rounded>
<Text>This is content card bordered and rounded</Text>
</Card>
</View>
);
export default Example;import React from 'react';
import { Text } from 'react-native';
import { CardImage } from 'monalisa-ui';
const Example = () => (
<CardImage
bordered
contentStyle={{ padding: 20 }}
height={150}
source={{ uri: 'http://lorempixel.com/640/480/city/' }}
>
<Text>This is content card image</Text>
</CardImage>
);
export default Example;