Card
Customizable card component that handles press events
(code example)
info
This component extends TouchableOpacity props.
tip
This component support margin, padding modifiers.
#
Usage<Card flex center onPress={() => console.log('pressed')}> <Card.Image source={{uri: 'https://github.com/wix/react-native-ui-lib/blob/master/demo/src/assets/images/card-example.jpg'}}/></Card>
#
API#
blurOptionsBlur options for blur effect according to @react-native-community/blur lib (make sure enableBlur is on)
object
#
borderRadiusCard border radius (will be passed to inner Card.Image component)
number
#
containerStyleAdditional styles for the card container
ViewStyle
#
elevation#
Android onlyElevation value
number
#
enableBlur#
iOS onlyEnable blur effect
boolean
#
enableShadowWhether the card should have shadow or not
boolean
#
heightCard custom height
number | string
#
onPressCallback function for card press event
function
#
rowShould inner card flow direction be horizontal
boolean
#
selectedAdds visual indication that the card is selected
boolean
#
selectionOptionsCustom options for styling the selection indication
CardSelectionOptions
#
widthCard custom width
number | string