Card
Customizable card component that handles press events
(code example)
This component extends TouchableOpacity props.
This component support margin, padding modifiers.
Usageβ
<Card width={70} height={70} onPress={() => console.log('pressed')}> <Card.Image width={70} height={70} source={{uri: 'https://images.pexels.com/photos/248412/pexels-photo-248412.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=200'}} /> </Card>
APIβ
blurOptionsβ
Blur options for blur effect according to @react-native-community/blur lib (make sure enableBlur is on)
object
borderRadiusβ
Card border radius (will be passed to inner Card.Image component)
number
containerStyleβ
Additional styles for the card container
ViewStyle
elevationβ
Android onlyβ
Elevation value
number
enableBlurβ
iOS onlyβ
Enable blur effect
boolean
enableShadowβ
Whether the card should have shadow or not
boolean
heightβ
Card custom height
number | string
onPressβ
Callback function for card press event
function
rowβ
Should inner card flow direction be horizontal
boolean
selectedβ
Adds visual indication that the card is selected
boolean
selectionOptionsβ
Custom options for styling the selection indication
CardSelectionOptions
widthβ
Card custom width
number | string