Skip to main content
Version: 0.3.0

CustomCard

The CustomCard component provides a consistent card design with theme support.

Props

PropTypeDefaultDescription
titlestringRequiredCard title text
descriptionstring-Optional description text
variant'default' | 'outlined''default'Card style
onPress(event: GestureResponderEvent) => void-Callback function when pressed
secureTextstring-Optional security label
trailingIconstring'chevron-forward'Icon shown at the end

Examples

Basic Usage

<CustomCard
title="User Profile"
description="View and edit your profile information"
/>

With Press Handler

<CustomCard
title="Settings"
description="Configure application settings"
onPress={() => navigation.navigate('Settings')}
/>

Outlined Card

<CustomCard
title="Important Notice"
description="This is a notification about an important update"
variant="outlined"
/>