Skip to main content

Card

Card are generally used to display information. Usually card contain images ,button, text and informative contents.

How to use

import React from 'react';
import {Card, Text} from '@gyri/native-ui-components';

const MyCard = ({className}) => (
<Card mode="outlined" className={className}>
<Text>MY Card</Text>
</Card>
);

export default MyCard;

Props

#NameData typeDefault valueValuesDescription
1modestringelevatedelevated, outlined, containedIt allow user to change mode of element
2classNamestring''It defined external CSS stylesheet.
3onPressFunction to execute on press.
4disabledbooleanIf true, disable all interactions for this component.
5elevationChanges Card shadow and background on iOS and Android.
6contentStyleStyle of card's inner content.

For more detail visit https://callstack.github.io/react-native-paper/docs/components/Card/